You also need to remember that let and const have block scope:
let i = 0;
let i = 1;
This will result in a log of
Actually, not mentioning this was one of the goals of my article. I think this behavior, for new programmers, is logically the most sensible!
(Having a comment pointing it out is fine though 😅)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.