DEV Community

Sahithyan
Sahithyan

Posted on

Weird JavaScript

I wrote a story titled 'Weird JavaScript' on Medium. This story tells some weird parts of JavaScript.
Here is the link: https://medium.com/@sahithyan_41609/weird-javascript-4c740268fcb9

Top comments (4)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited
  • Auto-type coercion (on operation), instead of throwing errors is a big quirk to me.
  • Another quirk I meet sometimes (and leads to error) is [] + [], which does not throw an error in TypeScript. Also, TypeScript is not strongly typed. It is only IDE-typed, and IDE can be denied.
  • 0.1 + 0.2 is very normal -- 0.30000000000000004.com/.
 
iamsahithyan profile image
Sahithyan

I didn't say JS is perfect. It's my favorite programming language. Because it has many pros compared to other langauges and it suits me better than any other programming language.

And having a thousands of transpilers is another advantages of JavaScript in my POV.

So don't play the Devil's advocate because I am the judge here.

 
iamsahithyan profile image
Sahithyan

Thank you for respecting my comments. 👍

Collapse
 
iamsahithyan profile image
Sahithyan

I don't think, JavaScript is a dangerous minefield.
I love JavaScript a lot. More than any other programming language.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay