Then don't use JavaScript. This functionality is intentionally baked in to the design of the language. It was literally designed to do exactly this. I think it's dumb too, but my solution isn't to expect the language to act against its design, it's to use a strongly typed language.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: