Skip to content

Commit

Permalink
removed ()
Browse files Browse the repository at this point in the history
  • Loading branch information
xssc committed Oct 19, 2015
1 parent 3835cd2 commit d785182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d785182

Please sign in to comment.