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

Function myFunc3

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

Source from the content-addressed store, hash-verified

79
80// * We can reassign the values of outer scope variables
81function myFunc3() {
82 let name = "initial value";
83
84 for (let i = 0; i < 2; i++) {
85 name = "new value";
86 }
87
88 console.log(name); // new value
89}
90
91myFunc3();
92

Callers 1

scope.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected