Is there a way to use constants in JavaScript?
If not, what\'s the common practice for specifying variables that are used as constants?
in Javascript already exists constants. You define a constant like this:
const name1 = value;
This cannot change through reassignment.