Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
stackoverflow.com
Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
1–6 of 6 posts
Re: Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
#23 days ago:
https://news.ycombinator.com/item?id=20689323
Re: Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
#3If you like this kind of thing, you might enjoy "WTF, JS?"
https://github.com/denysdovhan/wtfjs
Or it's slightly older brother "WTF, Python?"
Re: Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
#4Wow JavaScript is truly a cursed language
Re: Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
#5If you like this kind of thing, you might enjoy "WTF, JS?" https://github.com/denysdovhan/wtfjs Or it's slightly older brother "WTF, Python?" https://github.com/satwikkansal/wtfpython
See also Wat from 2012:
Re: Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'?
#6Because ’a’