-
Notifications
You must be signed in to change notification settings - Fork 556
Open
Description
setTimeout and setInterval can also take a string as their first parameter.
function foo() {
// will get called
}
function bar() {
function foo() {
// never gets called
}
setTimeout('foo()', 1000);
}
bar();In node v7.3.0
Here setTimeout('foo()', 1000); will throw TypeError: "callback" argument must be a function
Metadata
Metadata
Assignees
Labels
No labels