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 And similarly:
var x = 42;
--> /* Add a line terminator here */ x++;
console.log(x);
-
-
@mathias@filedescriptor I actually get a syntax error (in FireBug@Firefox/Windows) when adding a new line. Which kind of makes sense. -
@mathias@filedescriptor But adding an additional /* inside the comment fixes that!
End of conversation
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.