removed ()

This commit is contained in:
Sawyer Charles 2015-10-19 12:42:23 -05:00
parent 3835cd26f5
commit d78518288b

View File

@ -314,7 +314,7 @@ setTimeout(myFunction, 5000);
function myFunction(){
// this code will be called every 5 seconds
}
setInterval(myFunction(), 5000);
setInterval(myFunction, 5000);
// 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.