10
usr--2ndry
156d

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"

Comments
  • 5
    .? is an absolutely good addition to the language and very easy to understand.
  • 0
    @IHateForALiving not to be confused with .?() and .?[]
  • 1
    Hey I saw this operator on the MDN docs, can anyone tell me what it does?

    8======D~~~~
  • 0
    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.
  • 0
    @AlgoRythm if "Array", "String", "Number", and "NaN" are "native types", then HTML is a programming language!
  • 1
    @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.
  • 0
    @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
Add Comment