loading...

re: 70 JavaScript Interview Questions VIEW POST

TOP OF THREAD FULL DISCUSSION
re: β€œlet x = 5; x = (x++ , x = addFive(x), x *= 2, x -= 5, x += 10); function addFive(num) { return num + 5; } If you log the value of x it would b...
 

Thanks for telling me this little problem 😁

 

Thanks for writing the article. I’m enjoying it.

Also,

reduce.apply(obj1, [1, 2, 3, 4, 5]); // returns 15
reduce.apply(obj2, 1, 2, 3, 4, 5); // returns 15

Did you mean reduce.call obj2, 1, 2, 3, 4, 5); ?

code of conduct - report abuse