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

Function myFunc3

w2/d4/scratch.js:46–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45// * We can reassign the values of outer scope variables
46function myFunc3() {
47 let name = "initial value";
48
49 for (let i = 0; i < 2; i++) {
50 name = "new value";
51 }
52
53 console.log(name); // new value
54}
55
56// myFunc3();
57

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected