constant array in browser code example
Example 1: javascript const
const b = 1; // this variable unique and can't change it.
Example 2: const js +=
const foo; // Errror as const cannot be kept un-initialized;
const foo = "foo";
console.log(foo); //Output: foo
foo += " bar"; //Error