1

I recently faced a major issue because of const getting redefined. Not sure if it's by design. It will be a great help if anyone can explain me this.

'use strict'

const b = 61;
const nm = true;
if(nm){
    const b = 82;
    console.log(b);

}
TrickOrTreat
  • 821
  • 1
  • 9
  • 23

0 Answers0