SSSUKUMAR S·Mar 6, 201903Scope of VariableI know that if a variable in defined inside a function, with var keyword, then it will have Local Scope. When I tested following in Console of Browser, first output was undefined. Why? nw1 = 1; function nwf() { alert(nw1); ...PMRPraveen and 2 more commented