24 lines
417 B
TypeScript
24 lines
417 B
TypeScript
//// [namedFunctionExpressionCall.ts]
|
|
var recurser = function foo() {
|
|
// using the local name
|
|
foo();
|
|
|
|
// using the globally visible name
|
|
recurser();
|
|
};
|
|
|
|
|
|
(function bar() {
|
|
bar();
|
|
});
|
|
|
|
//// [namedFunctionExpressionCall.js]
|
|
var recurser = function foo() {
|
|
// using the local name
|
|
foo();
|
|
// using the globally visible name
|
|
recurser();
|
|
};
|
|
(function bar() {
|
|
bar();
|
|
});
|