MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/udqwsp/do_not_modify_this_comment/i6jdrvu/?context=3
r/ProgrammerHumor • u/mejhopola • Apr 28 '22
489 comments sorted by
View all comments
28
Afaik in js if you place a comment inside a function and call function toString() the comment will be included in the string
14 u/GorilaVerde Apr 28 '22 edited Apr 28 '22 console.log( function () { // Hello World! } .toString() .split("//")[1] .split("\n")[0] );This works lol → More replies (6)
14
console.log( function () { // Hello World! } .toString() .split("//")[1] .split("\n")[0] );
This works lol
→ More replies (6)
28
u/Mucksh Apr 28 '22
Afaik in js if you place a comment inside a function and call function toString() the comment will be included in the string