summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
authorSawyer Charles <xssc@users.noreply.github.com>2015-10-19 12:42:23 -0500
committerSawyer Charles <xssc@users.noreply.github.com>2015-10-19 12:42:23 -0500
commitd78518288bd8d37714ff00355274a7527e0e5a66 (patch)
treea368bf83292979658249d11bc69736088736b207 /javascript.html.markdown
parent3835cd26f5c58b05c547d2c9d51b39252e0eca15 (diff)
removed ()
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r--javascript.html.markdown2
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.