2 ms·
console.log(new Array(16).join("wat"-1) + " Batman!")
by Zealotux 1y ago
console.log(new Array(16).join("wat"-1) + " Batman!")
- ForHackernews 1y agoIndeed, this shtick was funnier 13 years ago. https://www.destroyallsoftware.com/talks/wat https://www.destroyallsoftware.com/talks/wat JavaScript is a quirky, badly-designed language and I think that is common knowledge at this point.
- deleted 1y ago[deleted]
- JKCalhoun 1y agoOpened Web Inspector in Safari and pasted the above. (I knew what to expect but did not know how it would work … me trying to figure out what subtracting 1 from a string (ASCII?) would give you. But very related to this post.)
- deleted 1y ago[deleted]