It's time for @nordicjs and a challenge! Write #javascript code that behaves differently if you change the text of a comment. Please RT!
@peterjaric @filedescriptor ASI?
var x = 1;
x/*
Remove line terminators from this comment and I won’t throw an error anymore!
*/++;
-
-
@mathias@filedescriptor Yay! But you can do it without any errors too. I'll just finish my lunch and get started on my little blog post. -
@peterjaric@mathias without errors: ~function(){return/*[insert line break]*/1}() JScript(meh): /*@cc_on alert(1) - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.