If you declare a variable within a certain scope (decision block, function, or inner class).It has the same name as a variable declared in an outer scope. This is called variable shadowing. How it works. let's start...
Also You can understand more about it.
Click here https://jsbin.com/cupixak/edit?js,console
https://youtu.be/nzSGIzgbv9U
I hope this is useful javascript tips. if you like please follow, share,comments and like. (Muhammad Rizwan Alam)
also please don't forget to subscribe my youtube channel
Top comments (0)