- 1. Hello World
- 2. Data Types
- 3. Comments
- 4. Variables
- 5. If/Else Statements
- 6. For Loops
- 7. Functions
- 8. Arrays
- 9. Objects
Category | from | to |
---|---|---|
Underweight | 18.5 | |
Normal Range | 18.5 | 23 |
Overweight—At Risk | 23 | 25 |
Overweight—Moderately Obese | 25 | 30 |
Overweight—Severely Obese | 30 |
- Create a Palindrome
- Create a calculator factory that operates with arrays.
- The method
sum
should works with numbers and strings.// Numbers [1, 2, 3, 4, 5] // 15 [10, 20, 30, 40, 50] // 150 // Strings ["one, ", "two, ", "three"] // "one, two, three" ["hey, ", "what's ", "up", "?"] // "hey, what's up?"
- The method
sumAndSquare
should sum a collection and then square the sum.[1, 2, 3, 4, 5] // 225 [10, 11, 12, 13, 14] // 3600
- The method
onlyEvens
should filter out odd numbers.[1, 2, 3, 4, 5, 6] // [2, 4, 6] [7, 8, 9, 10, 11, 12] // [8, 10, 12]
- The method
onlyOdds
should filter out even numbers.[1, 2, 3, 4, 5, 6] // [1, 3, 5] [7, 8, 9, 10, 11, 12] // [7, 9, 11]
- The method
squareAndSum
should square every number in a collection and then summing them.[1, 2, 3, 4, 5, 6] // 91