JavaScript is funky.. Want to guess what the output is?
So, reading this code, we're trying to sort the numbers by utilizing the .sort() on the array. Naturally, without anything in the parentheses, you would expect lowest to highest.
So it makes you wonder what's going on behind the scenes...
👉 I hope you all get this stuff .sorted() out!
33
2
8
1
5 votes
3
0 comments
Rob Vanarsdall
7
JavaScript is funky.. Want to guess what the output is?
The Code Zone Skool
skool.com/the-code-zone
Beginner-friendly community to learn Python, HTML, CSS, & JavaScript. We help you become a full-stack developer and offer 1:1 code coaching.
Leaderboard (30-day)
Powered by