DEV Community

Discussion on: const vs. let

Collapse
 
rsa profile image
Ranieri Althoff • Edited

It will not error since you are not redefining number in the first case. I think you meant number = 2 instead (in both cases).

Collapse
 
programmerpiyush008 profile image
Piyush Panchal

oh yeah thanks for telling