The var and let keyword in loops may cause colossal confusion π€―. When we do not understand the concept well, there are high chances of bugs π in the code.
I recently found one while doing a code review. Hence thought of capturing it in a short video. I hope you enjoy π it.
Timecodes
0:00 - Introduction
00:38 - The var, let, and for-loop with example
03:48 - The var, let, for-loop with JavaScript Closures
Important Links
-----------------------------
- Twitter: https://twitter.com/tapasadhikary
- Blog: https://blog.greenroots.info/
- Showwcase React Community: https://www.showwcase.com/community/r...
Liked my work? Do you want to support my work?
- https://www.buymeacoffee.com/greenroots
Thank You π
Download
0 formats
No download links available.
π€― Understanding JavaScript Scope in for-loop with var and let keywords | NatokHD