- 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.
This for an entry level position. For a more senior position, I'm using this gist: http://gist.github.com/633087