Skip to content

Codecademy's Joke

9 pointsnurik3 comments
On HN

In an introduction to an objects course the team of Codecademy placed a javascript joke. I am not a member of the team of Codecademy but found it pretty funny. Here is their joke:

"We at Codecademy love to joke around. Obviously different things make different people laugh. This first 'joke' is super geeky because it involves coding! And it'll only be funny if you knew the TV show 'Batman'. But we loved it and hope you do too! Copy this code into the scratch pad and run the code!

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

Comments

more like:

    Array(16).join("parents" - 2) + "Batman"

If you know that a string minus a number results in NaN, you don't need to run the code to get the joke ;)

watch WAT, it's awesome and includes the same joke :-)

https://www.destroyallsoftware.com/talks/wat

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.