Javascript best practices

References

  • const and let are block scoped

  • Use const for references
    • using const ensures that references cannot be reassigned.

      include example

  • Use let to reassign references. Avoid using var

    include example