Hacker News new | ask | show | jobs
by suyash 5042 days ago
JavaScript only supports pass by value, @ author: Nice quiz, I failed the last one, it would be nice to add more quizes and test users knowledge of function scoping, just like the commenter said, since functions can be passed around like objects, function scoping is another tricky one to master for beginners.
1 comments

not true. boolean, strings, numbers (int, float) are passed by value, while Objects, Arrays and Functions are passed by reference!