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
-
.? is an absolutely good addition to the language and very easy to understand.
-
Hey I saw this operator on the MDN docs, can anyone tell me what it does?
8======D~~~~ -
There 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.
-
@AlgoRythm if "Array", "String", "Number", and "NaN" are "native types", then HTML is a programming language!
-
@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.
-
@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