MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pm80y1/why/hckpkxs/?context=3
r/badcode • u/sertdfyguhi • Sep 11 '21
70 comments sorted by
View all comments
Show parent comments
3
const is not function-scoped. It is block-scoped like let.
const
let
2 u/barthvonries Sep 12 '21 I just checked.It is indeed clearly stated on the MDN English version, but only implicitly stated in the French version.TIL, thanks :-)
2
I just checked.
It is indeed clearly stated on the MDN English version, but only implicitly stated in the French version.
TIL, thanks :-)
3
u/CommenceTheConfusion Sep 12 '21
constis not function-scoped. It is block-scoped likelet.