MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/v6scv3/this_coding_stuff_easy_fr/ibja67d/?context=3
r/learnjavascript • u/caligula7944 • Jun 07 '22
71 comments sorted by
View all comments
14
All js should start with the declaration:
document.write = () => throw 'Bad dog. No biscuit.'
1 u/caligula7944 Jun 07 '22 i have no idea what this means lmao 9 u/LostErrorCode404 Jun 07 '22 It changes the source code for document.write to instead throw a error, stopping the program.Terrible practice to mess with prototypes and default functions, but funny for the meme. 1 u/ManiacsThriftJewels Jun 07 '22 Is it worse than actually using the method it replaces though?
1
i have no idea what this means lmao
9 u/LostErrorCode404 Jun 07 '22 It changes the source code for document.write to instead throw a error, stopping the program.Terrible practice to mess with prototypes and default functions, but funny for the meme. 1 u/ManiacsThriftJewels Jun 07 '22 Is it worse than actually using the method it replaces though?
9
It changes the source code for document.write to instead throw a error, stopping the program.
Terrible practice to mess with prototypes and default functions, but funny for the meme.
1 u/ManiacsThriftJewels Jun 07 '22 Is it worse than actually using the method it replaces though?
Is it worse than actually using the method it replaces though?
14
u/ManiacsThriftJewels Jun 07 '22
All js should start with the declaration: