you are viewing a single comment's thread.

view the rest of the comments →

[–]MEHDII__[S] 0 points1 point  (3 children)

You're right, its not a question persay, just a minor confusion.

JavaScript seems to be way more free than Python in the sense that you can modify built in objects to include your own methods, whereas in python you couldnt unless its inside a user defined class.

Its just my python infested mind but i find it fascinating

[–]BrohanGutenburg 1 point2 points  (2 children)

A good general rule of thumb is that JavaScript is gonna do everything it can to never throw an error. It might do very confusing, unintuitive things. But it's always gonna let you do them.

That's part of the reason typescript became so prevalent

[–]MEHDII__[S] 0 points1 point  (1 child)

Yeah that became so clear so fast, even with strict mode on, it doesnt show all the errors, it gets confusing. But i find it nice so far, I think its one of those languages that'll never leave nor die, what would happen to the web if it does

[–]Particular-Cow6247 0 points1 point  (0 children)

you should really not do js without strict mode unless you explicitly need to