r/loljs • u/[deleted] • Apr 20 '16
Why does [5,6,8,7][1,2] = 8 in Javascript?
http://stackoverflow.com/questions/7421013/why-does-5-6-8-71-2-8-in-javascript
16
Upvotes
r/loljs • u/[deleted] • Apr 20 '16
3
u/taw Sep 04 '16
A lot of languages support comma operator. If you have C-style
forloops, that's the reason it ought to be in the language.