Always use const or let!

linkDoes the value need to be changed? No?

Use const!

linkOtherwise use let!

Let has block scoping advantages over var.

A var has Function scoping, which is less precise than Block scoping.

The content above is from a note published by an Amplenote subscriber. As updates to the note are made, they are reflected here in real time.   Learn how to embed notes anywhere keyboard_arrow_right