Recently I did a small workshop in the company I am working. I thought it could be interesting for someone to take a look at Javascript tasks I created for my colleagues. It was a bit of challenge for me, because all of them are pretty experienced in Java already. Here are some of them:
-
Find the biggest element in the array of numbers. Use function
Math.max
for this; - Transform array of numbers to array of functions that will alert that digits;
- Sort array of objects by number of object properties;
- Write a function which will return you first two times 1, then 2, then 3, then 5 and so on (Fibonacci numbers). Don’t use any global variables.
- Make this syntax possible: var a = (5).plus(3).minus(6); //2
- Make this syntax possible: var a = add(2)(3); //5
If you know the answers, located in Sydney and looking for a job, drop me a line.