mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Note aboute setTimeout
This commit is contained in:
parent
b28900b889
commit
3f9ba06563
@ -219,6 +219,7 @@ function myFunction(){
|
|||||||
// this code will be called in 5 seconds' time
|
// this code will be called in 5 seconds' time
|
||||||
}
|
}
|
||||||
setTimeout(myFunction, 5000);
|
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
|
// 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.
|
// an anonymous function definition directly into the arguments of another.
|
||||||
|
Loading…
Reference in New Issue
Block a user