TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Codecademy's Joke

9 点作者 nurik超过 13 年前
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:<p>"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!<p>Array(16).join( 'hero'-1) + "Batman";

3 条评论

lao超过 13 年前
more like:<p><pre><code> Array(16).join("parents" - 2) + "Batman"</code></pre>
dangrossman超过 13 年前
If you know that a string minus a number results in NaN, you don't need to run the code to get the joke ;)
ABS超过 13 年前
watch WAT, it's awesome and includes the same joke :-)<p><a href="https://www.destroyallsoftware.com/talks/wat" rel="nofollow">https://www.destroyallsoftware.com/talks/wat</a>