I'm not saying JS is any good for OO or evangelizing anything else about it. JS is a weird monster. It plays loose with nearly all programming concepts.
Yes. Having random characters that I didn’t write and are also not present in the code, but that do modify the behaviour of said code is a very reasonable and sane thing to want.
Correct! Even exceptions should be handled by this same technique and the exception message should be used as a representation for the passing the "value" of it.
new RegExp(sdfsd) should return /[sdfsd is not defined]/
View all comments
Show parent comment
0
u/[deleted] Mar 20 '24
[deleted] — view deleted comment