MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / myFunc4

Function myFunc4

w2/d4/scope.js:275–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273var global3 = 3;
274
275function myFunc4() {
276 // we can access these values from the function's scope
277 console.log(global1);
278 console.log(global2);
279 console.log(global3);
280
281 // * variable declared globally if no keyword is used
282 global4 = 4;
283}
284
285myFunc4();
286// * we can access the global4 variable even tho we are going from a outward scope inwards

Callers 1

scope.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected