The same lexical scope contains let count = 1 followed by let count = 2. How is this program classified?
Explanation
Two lexical declarations of the same name in one scope are not permitted, so the duplicate let declarations cause a SyntaxError. Declaring the same spelling in a genuinely nested scope would instead be shadowing, not this duplicate-declaration case.