499
parseInt(5) (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] heavy@sh.itjust.works -3 points 2 months ago

Theoretically, Javascript is an untyped language, so there aren't supposed to really be static types. Giving type errors in this situation would be against design.

[-] jjjalljs@ttrpg.network 29 points 2 months ago

Maybe the design is bad, then.

[-] heavy@sh.itjust.works 5 points 2 months ago

Lol you'll get no argument from me. It's not my favorite language.

[-] bleistift2@sopuli.xyz 6 points 2 months ago

JavaScript has types and it does have type errors, for instance

> null.foo
Uncaught TypeError: null has no properties

Please stop spouting nonsense on issues you know nothing about.

[-] heavy@sh.itjust.works -4 points 2 months ago

Dynamic types aren't static types my man. I think you got some learning to do.

[-] victorz@lemmy.world 5 points 2 months ago
[-] heavy@sh.itjust.works 0 points 2 months ago

Lol like facilitate versus effectuate

[-] zqwzzle@lemmy.ca -2 points 2 months ago

Theoretically, Javascript is an untyped language…

Function only handles string arguments correctly. Wat.

this post was submitted on 05 May 2025
499 points (98.8% liked)

Programmer Humor

25328 readers
684 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS