Javascript doesn’t “just work”. It’s a language originally designed to glue actions to html elements and it is fundamentally broken in ways that will be never be fixed. Weird syntax, weird type coercion, horrible base types & functions, surprises galore. Even Typescript, which is basically a precompiler, is just JS with some type checking. The only reason anyone uses either is because it is ubiquitous - people have to use it.
Comment on Anon tries programming in Java
Seeders@sh.itjust.works 5 weeks agoI love javascript.
arc@lemm.ee 5 weeks ago
Seeders@sh.itjust.works 5 weeks ago
It’s the greatest language on the planet.
herrvogel@lemmy.world 5 weeks ago
Javascript is a beautiful language where ‘3’ - 1 = 2 but ‘3’ + 1 = ‘31’.
Seeders@sh.itjust.works 5 weeks ago
Exactly
ReluctantMuskrat@lemmy.world 5 weeks ago
I mean it might not work as intended but it’ll run and not complain!
Seeders@sh.itjust.works 5 weeks ago
god damn right