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

Function myFunc2

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

Source from the content-addressed store, hash-verified

69// * we can go inward -> outward
70// ! not outward -> inward
71function myFunc2() {
72 let name = "brandon";
73 // able to access x variable in a different scope
74 console.log(x); // "bad"
75}
76
77myFunc2();
78// console.log(name);//ReferenceError: name is not defined

Callers 1

scope.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected