DEV Community

Discussion on: Given a chance to time-travel to 90s and rewrite the JavaScript specification, what you'd have done differently?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Perhaps just,

  • no hoisting
  • no undefined. null only.
  • no undue type coercions. Throw more errors. Perhaps also, true dynamic arrays

Just make Javascript less of a minefield is most important.

Indeed, Javascript did tried its best to prevent UI from crashing, but it failed more than sometimes.

It did somewhat succeed in preventing UI for hanging, though.