DEV Community

Discussion on: const vs. let

Collapse
rsa profile image
Ranieri Althoff • Edited on

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 Author

oh yeah thanks for telling