diff --git a/sections/60_continuing_cs/00_recursion_intro/README.md b/sections/60_continuing_cs/00_recursion_intro/README.md index 3836cec..d011cff 100644 --- a/sections/60_continuing_cs/00_recursion_intro/README.md +++ b/sections/60_continuing_cs/00_recursion_intro/README.md @@ -18,7 +18,9 @@ more to it than that, but it's a good starting point. --- -Let's take a look at a similar example. [Click here to see how we can use recursion to calculate Fibonacci Numbers](./fibonacci.js). +Let's take a look at a similar example. + +[Click here to see how we can use recursion to calculate Fibonacci Numbers](./fibonacci.js). --- @@ -172,7 +174,7 @@ That's it! Our function will now print every item in the tree out, all on its ow Here are some hints if you get stuck (click to reveal): * ||LOCATION 1: You can think about a file as being your base case. There's no need to recurse further when you hit a file, just print it out.|| * ||LOCATION 2: Take a look at the code above. The problem you're working on is a bit more complicated, but the recursive part is exactly the same.|| -* ||LOCATION 1: `console.log(fileName + ": " + fileData);`|| -* ||LOCATION 2: `printFilesInFolder(fileData);`|| +* ||LOCATION 1: console.log(fileName + ": " + fileData);|| +* ||LOCATION 2: printFilesInFolder(fileData);|| Good luck! \ No newline at end of file diff --git a/sections/60_continuing_cs/00_recursion_intro/files.js b/sections/60_continuing_cs/00_recursion_intro/files.js index bf7cfb2..c5b4130 100644 --- a/sections/60_continuing_cs/00_recursion_intro/files.js +++ b/sections/60_continuing_cs/00_recursion_intro/files.js @@ -38,7 +38,7 @@ const myFiles = { // Here's some code to get you started. // Give it a try, and if you get stuck, that's alright! -// This is a really tricky topic, so there are hints included in the lesson (click the blacked out text to reveal them). +// This is a really tricky topic, so there are hints included in the lesson (click the blurred out text to reveal them). function printFilesInFolder(filesObject) { // This is a for loop going through every key in `filesObject`. // It will look at every file/folder in the object. @@ -72,4 +72,6 @@ function printFilesInFolder(filesObject) { printFilesInFolder(myFiles); // By the way, the source code for this website actually uses a piece of code super similar to this to -// deal with files, as well as lessons. \ No newline at end of file +// deal with files, as well as lessons. +// This lesson was also uploaded by code like this: +// https://github.com/Cratecode/client/blob/8b2b034d7ef0d6c43719fe078be3fc802ed12baa/src/upload/manifest.ts#L60. \ No newline at end of file