KishCom

Developer. Gamer. Yo-Yo Thrower.

Batman JavaScript Error

Check out this silly JavaScript snippet that’s been floating around (it has nothing to do with the microframework):

Array(16).join("lol" - 2) + " Batman!";

For the non-web geeks: It’s a line of code that causes a neat error message. If you’re in Chrome, press F12 (that’s what the guts of the internet look like BTW), click the “Console” button at the top and paste that line of code in, then press enter. “NaN” means “Not a Number” in JavaScript, it’s saying this because you can’t subtract 2 from “lol”.

Back to KishCom.com
KishCom.Com

Table of Contents