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...
Markdown supported Β· ββ΅ to post
Γ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.