Hey! I'm not sure if undefined is better than null, in most cases there is not much difference. The. benefit of null or a Symbol is that it is more explicit. For me, undefined is the value the interpreter, null or Symbols are for users (this is not how it works, it's how I look at it).
Anyway, nullable for me means either undefined or null and the biggest issue with it remains: there is only one (well, two :D) and you cannot control how others use it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey! I'm not sure if
undefined
is better thannull
, in most cases there is not much difference. The. benefit ofnull
or a Symbol is that it is more explicit. For me,undefined
is the value the interpreter,null
or Symbols are for users (this is not how it works, it's how I look at it).Anyway, nullable for me means either
undefined
ornull
and the biggest issue with it remains: there is only one (well, two :D) and you cannot control how others use it.