diff options
author | Sawyer Charles <xssc@users.noreply.github.com> | 2015-10-19 12:42:23 -0500 |
---|---|---|
committer | Gabriel SoHappy <czh.gabriel@gmail.com> | 2015-10-21 02:05:37 +0800 |
commit | c0171566ba8c9061fb23fc1ab17b11d974cdbb98 (patch) | |
tree | c83424aea901942c4632383be809d21e3d291eb7 | |
parent | 8b9c5561e7af0c5caca83ac13d306d756d6f227f (diff) |
removed ()
-rw-r--r-- | javascript.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 22a2959c..81dc09a9 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -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. |