- Solve all problems using JavaScript
-
Write a function that returns an array with the first
npowers of 2. Call ittwoPow. -
Use
twoPowandArray.prototype.reduceto the sum of the first 10 powers of 2. -
Describe this call signature:
say("Hello")("World"); // An alert displaying, "Hello World" appears -
Implement the
sayfunction from question 3. -
Simplify the following code:
if(foo !== '' || foo !== null || typeof foo !== 'undefined') { alert(foo); } -
Write a
sumfunction that takes any number of parameters.
Stupid question: At what round of the interview you ask such questions?