© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Ábel Slemmer
Hi Yaksh!
I think the last (5.) example doesn't work as you expect, the second console.log will also print the the "a". That's because "var" is function scope, try to declare with "let" or "const" both of them are block scope.
YAKSH BARIYA
I create amazing things using the knowledge I have gained so far
Thanks for informing me about the correction. The correct has been done ✅