should i use var or const when making a instance of Date() in javascript code example
Example 1: js define constant by element id
const elem = document.getElementById('elementID');
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