DEV Community

Discussion on: 70 JavaScript Interview Questions

Collapse
 
macmacky profile image
Mark Abeto

Thanks for telling me this little problem 😁

Collapse
 
droutback profile image
DrOutback

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); ?

Thread Thread
 
macmacky profile image
Mark Abeto

Thanks again 😁