Skip to content

Commit b555f2d

Browse files
committed
Merge pull request #140 from Brianmanden/patch-1
Update problem.md
2 parents 6c59771 + 03efc8f commit b555f2d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

exercises/higher_order_functions/problem.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ All other functions are first order functions. [1]
77

88
Unlike many other languages with imperative features, JavaScript allows you to utilize higher-order functions because it has "first-class functions". This means functions can be treated just like any other value in JavaScript: just like Strings or Numbers, Function values can be stored as variables, properties on objects or passed to other functions as arguments. Function values are actually Objects (inheriting from `Function.prototype`) so you can even add properties and store values on them, just like any regular Object.
99

10-
The key difference between Functions and other value types in JavaScript is the call syntax: if a reference to a function is followed by parens and some optional comma-separated values: `someFunctionValue(arg1, arg2, etc)`, then the function body will be executed with the supplied arguments (if any).
10+
The key difference between Functions and other value types in JavaScript is the call syntax: if a reference to a function is followed by parenthesis and some optional comma-separated values: `someFunctionValue(arg1, arg2, etc)`, then the function body will be executed with the supplied arguments (if any).
1111

12-
In this exercise we're going demonstrate that functions can be passed as values by passing you a function as an argument.
12+
In this exercise we're going to demonstrate that functions can be passed as values by passing you a function as an argument.
1313

1414
# Task
1515

@@ -30,8 +30,7 @@ Use the boilerplate code given to you below to get started. Most/all future exer
3030
## Hints
3131

3232
* Don't overthink it, the code should be rather simple.
33-
* It's ok to use a loop in your implementation, bonus points
34-
if you use recursion instead.
33+
* It's ok to use a loop in your implementation, bonus points if you use recursion instead.
3534
* You may notice some output. That is coming from the function we passed you.
3635
* You do not need to console.log anything.
3736

0 commit comments

Comments
 (0)