You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ You're here to solidify your understanding of recursion -- a fundamental program
6
6
7
7
## Prerequisites
8
8
9
+
This workshop is designed for folks in the midst of studying intermediate-level JavaScript who have a few months of foundational experience. You will be expected to understand the basics of the Document Object Model (DOM) as applied to HTML.
10
+
9
11
## Textbook
10
12
11
13
No textbook is required for this workshop. All materials are included in this GitHub repo.
@@ -28,7 +30,7 @@ Recursion is a technique for solving problems wherein a function makes calls to
28
30
29
31
Consider the following function:
30
32
31
-
```
33
+
```js
32
34
vareat=function(meal){
33
35
console.log('meal before bite:', meal);
34
36
console.log('now eating', meal.pop());
@@ -42,7 +44,7 @@ var eat = function(meal){
42
44
43
45
Which produces this output:
44
46
45
-
```
47
+
```js
46
48
eat(['soup', 'potatoes', 'fish']);
47
49
// => meal before bite: ["soup", "potatoes", "fish"]
48
50
// => now eating fish
@@ -61,6 +63,8 @@ In this sprint, you'll be practicing writing recursive functions, building up to
61
63
62
64
## Exercises
63
65
66
+
More detailed instructions for each exercise can be found in the individual .js files in the `src` folder.
67
+
64
68
### 1: sumArray
65
69
66
70
-[ ] Implement `sumArray` with your own function in `src/sumArray.js`
@@ -77,14 +81,14 @@ In this sprint, you'll be practicing writing recursive functions, building up to
77
81
78
82
-[ ] Implement `getElementsByClassName` with your own function in `src/getElementsByClassName.js`
79
83
-[ ] You should use `document.body`, `element.childNodes`, and `element.classList`
80
-
- NOTE: You may also use methods from the [underscore](https://underscorejs.org) library for assitance, but are not required to do so.
84
+
- NOTE: You may also use methods from the [underscore](https://underscorejs.org) library for assitance, but are not required to do so.
81
85
- You can view the MDN documentation for getElementsByClassName [here](https://developer.mozilla.org/en/docs/Web/API/Document/getElementsByClassName)
0 commit comments