Javascript Golden Rules

  • Programming
  • 5 min read
  • Published July 18, 2020
Javascript Golden Rules
  • Declare variables with let or const, not var.
  • use strict mode.
  • Know your types and avoid automatic type conversion.
  • Understand prototypes, but use modern syntax for classes, constructors, and methods.
  • Don’t use this outside constructors or methods.