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 2 days agoI love javascript.
arc@lemm.ee 2 days ago
Seeders@sh.itjust.works 1 day ago
It’s the greatest language on the planet.
herrvogel@lemmy.world 2 days ago
Javascript is a beautiful language where ‘3’ - 1 = 2 but ‘3’ + 1 = ‘31’.
Seeders@sh.itjust.works 1 day ago
Exactly
ReluctantMuskrat@lemmy.world 2 days ago
I mean it might not work as intended but it’ll run and not complain!
Seeders@sh.itjust.works 2 days ago
god damn right