|
|
|
|
|
by kevinmgranger
1684 days ago
|
|
Javascript requires explicit variable declaration if you're bringing it to a new scope, though. Which is to say: var s = "Geeksforgeeks";
function f_global() {
s = "Me too";
}
// is different from
function f_local() {
var s = "Me too";
}
|
|