what is use of constant in javascript code example
Example 1: const in javascript
const value = 10;
const constant = value;
Example 2: js define constant by element id
const elem = document.getElementById('elementID');
const value = 10;
const constant = value;
const elem = document.getElementById('elementID');