416 reads
2 comments
·May 7, 2021
May 7, 2021
A Great Explanation Yousaf Khan.
I read your answer to my question on Linkedin where you shared a link to this article. I found this article very useful.
I've understood that var has a function scope which is available all over the function whereas let has a block scope created unieqely for each iteration.
2
·
·1 reply
Author
·May 8, 2021
Glad to know that you found this article useful. Thank you for the positive feedback!
·