We are pleased to introduce the Stack Overflow and Stack Exchange liquid tags. These embeds, assembled in native HTML within posts (as opposed to i...
For further actions, you may consider blocking this person and/or reporting abuse
"Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?"
hahahahaha I'm dying
That is just the kind of Stack content I hope this feature will help bump 😄
The answer is pretty great
+'a'resolves toNaN("Not a Number") because it coerces a string to a number, while the characteracannot be parsed as a numberbanana.Adding
NaNto"ba"turnsNaNinto the string"NaN"due to type…There are a lot of gems on Stack Overflow waiting to be bumped, like this thread about sorting socks...
Yesterday I was pairing the socks from the clean laundry and figured out the way I was doing it is not very efficient. I was doing a naive search — picking one sock and "iterating" the pile in order to find its pair. This requires iterating over n/2 * n/4…
Awesome!
I know at least one of my old answers that I need to edit now...
I think a feature like this will really help the community. It's one thing for someone to comment "duplicate" and you feel punished for it. It's another thing to be like "this was answer here on this other answer, check it out!"
Can I get a hip hip hooray?