Note aboute setTimeout

This commit is contained in:
jeroenransijn 2013-09-11 15:51:21 +02:00
parent b28900b889
commit 3f9ba06563

View File

@ -219,6 +219,7 @@ function myFunction(){
// this code will be called in 5 seconds' time
}
setTimeout(myFunction, 5000);
// Note: setTimeout isn't part of the JS language, but is provided by browsers and Node.js.
// Function objects don't even have to be declared with a name - you can write
// an anonymous function definition directly into the arguments of another.