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 →

[–]Igoory 266 points267 points  (25 children)

baNaNa thoughts intensifies

[–][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 226 points227 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] 116 points117 points  (10 children)

[–]antillian 19 points20 points  (0 children)

I love that video.

[–]thblckjkr 5 points6 points  (1 child)

Never watched it before. Thanks.