Wrapped setTimeout note to 80 chars

This commit is contained in:
Adam Brenecki 2013-09-13 20:21:14 +09:30
parent 3f9ba06563
commit 9d1015232c

View File

@ -219,7 +219,8 @@ 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. // 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.