MCPcopy Create free account
hub / github.com/bradtraversy/javascript-sandbox / first

Function first

03-functions-scope/05-nested-scope/script.js:1–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function first() {
2 const x = 100;
3
4 function second() {
5 const y = 200;
6 console.log(x + y);
7 }
8
9 // console.log(y);
10
11 second();
12}
13
14first();
15

Callers 1

script.jsFile · 0.70

Calls 1

secondFunction · 0.70

Tested by

no test coverage detected