Dec 05, 2014
As you know JS is a dynamic programming language which makes both an efficient and dangerous tool. When you are expanding someone else’s code you have to be careful not to overwrite used variables. If creating libraries or even writing a simple script it’s very important to have clean scopes to prevent overwriting variables or functions in the future. Clean scopes also mean no unnecessary global variables. In this post I will show you how to have full control while declaring your variables, functions and objects.