Diffentiate Local and Global Variables?
Local or function level variable effective just in the function in that they are declared although global variables visible everywhere on the webpage. Declaration variables by using the var keyword inside a function form them local. They are available only inside the function and hold no meaning outside of vs global.