Why can I redeclare the same constant with a new value? Online sources (w3s) say JavaScript const variables cannot be redeclared. Thank you for your time.
const myConst = 5;
a // Console outputs: 5 (Opera and Chrome)
const myConst = 7;
a // Console outputs: 7 (Opera and Chrome)