MCPcopy Create free account
hub / github.com/basarat/typescript-book / bar

Function bar

code/javascript/closure.js:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2function outerFunction(arg) {
3 var variableInOuterFunction = arg;
4 function bar() {
5 console.log(variableInOuterFunction);
6 }
7 bar();
8}
9outerFunction("hello closure");

Callers 1

outerFunctionFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected