Search posts, tags, users, and pages
YAKSH BARIYA
I create amazing things using the knowledge I have gained so far
In this article I will be showing you some awesome ๐ฅ๐ฅ JavaScript tricks that you probably didn't knew about.... These tricks will help you in writing competitive JavaScript and much more.... 1. Use Strict If you have some basic knowledge of TypeScr...
ร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.
Thanks for informing me about the correction. The correct has been done โ
Amarachi Johnson
๐
Thanks for sharing Yaksh. I definitely picked up new tricks.
Glad you liked it
ร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.