This forum is now read-only. Please use our new forums at

1210 points
Submitted by
about 6 years ago

What's the point about the "Batman" joke?

I don't see the laughing point of it.
Could anyone show me a little hint?

7 votes


In that exercise's hint, this code

 Array(16).join( 'hero'-1) + "Batman";

will produce this output:


because NaN (not a number) is the "result" (actually more of a placeholder so you know that there has been an error) of trying to calculate 'hero'-1 (it's NaN because you can't meaningfully subtract 1 from a String). The NaN is converted to a string and concatenated 16 times, then "Batman" is appended at the end.

The resulting string reads like someone is trying to sing or hum the Batman movie theme. It's kind of childish actually ;)

3117 points
Submitted by
Alex J
about 6 years ago


81d71b58bbfeb83e86e831ffede7269f?s=140&d=retro Hun almost 6 years ago

LOL I only get this after reading your explanation. && I laugh.

82dc435082a72b4b3de2befbb3d5744a?s=140&d=retro danwaldis over 5 years ago

I only got it also after reading the explanation. It would have worked a lot better with a sound track.... :)

5077da0ec0d82102000032c3_879356129 tagSurfer77072 over 5 years ago

sorry for replying so late. thx a lot.

0 votes


I got it & it made me laugh. thanks!

609 points
Submitted by
about 6 years ago

0 votes


I hated this. I spent all day going through these lessons because I need to learn Javascript quickly, then I came across this STUPID joke that has nothing to do with the instructions for the problem, and which just seems stupid. Please leave your nerd jokes for your personal life and don't put up barriers to people who have no idea what you are talking about and don't care.

0 points
Submitted by
over 5 years ago

1 Comment

82dc435082a72b4b3de2befbb3d5744a?s=140&d=retro danwaldis over 5 years ago

These kind folks are handing you the lessons free on a silver platter. I would think you could be a little more gracious.