2014-07-13 01:04:16 +02:00
|
|
|
//// [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() {
|
2014-08-16 00:49:09 +02:00
|
|
|
// using the local name
|
2014-07-13 01:04:16 +02:00
|
|
|
foo();
|
2014-08-16 00:49:09 +02:00
|
|
|
// using the globally visible name
|
2014-07-13 01:04:16 +02:00
|
|
|
recurser();
|
|
|
|
};
|
|
|
|
(function bar() {
|
|
|
|
bar();
|
|
|
|
});
|