- Solve all problems using JavaScript
-
Write a function that returns an array with the first
n
powers of 2. Call ittwoPow
. -
Use
twoPow
andArray.prototype.reduce
to the sum of the first 10 powers of 2. -
Describe this call signature:
say("Hello")("World"); // An alert displaying, "Hello World" appears
-
Implement the
say
function from question 3. -
Simplify the following code:
if(foo !== '' || foo !== null || typeof foo !== 'undefined') { alert(foo); }
-
Write a
sum
function that takes any number of parameters.
Yes' I'd looked at it. Classical questions, I think.
It refreshed my memory, thanks. :-)