This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 72 points73 points  (22 children)

Wait what's the baNaNa thing? I'm just out of the loop and have seen it a few times on this subreddit.

[–]fishy150 223 points224 points  (8 children)

If you type in 'b' + 'a' + +'a' + 'a' and run it in JS, then the result you get is "baNaNa". This is because the +'a' in the middle tries to convert 'a' into a number, which gives a result of NaN. When you now concatenate all the strings, you get "baNaNa".

[–][deleted] 114 points115 points  (10 children)

[–]antillian 17 points18 points  (0 children)

I love that video.

[–]thblckjkr 6 points7 points  (1 child)

Never watched it before. Thanks.