Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
IHateForALiving2803353d.? is an absolutely good addition to the language and very easy to understand.
-
shovethisrant6010351dHey I saw this operator on the MDN docs, can anyone tell me what it does?
8======D~~~~ -
AlgoRythm50820333dThere are native types but there’s no native type safety syntactic sugar. You need to check types yourself and even then the prototype of a class can change in runtime due to the nature of the language.
-
usr--2ndry743328d@AlgoRythm if "Array", "String", "Number", and "NaN" are "native types", then HTML is a programming language!
-
AlgoRythm50820328d@usr--2ndry I mean that JavaScript has typing via the “class” keyword and type checking via instanceof keyword. NaN isn’t even a type btw.
-
usr--2ndry743328d@AlgoRythm you are right. NaN is typeof number and so are 0.2 and 2 so there is a simplistic type system after all (that does not discriminate between Integer and floating but
Related Rants
The state of JavaScript in 2024.
More frameworks, more minor syntax shortcuts to make code look more like emojis
?= := ?? .? =~ ;-P
but no native typing
so that devs can go on fighting about "JavaScript vs. TypeScript"
rant
javascript
typescript
stateofjs
js
2023