mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-08 15:56:47 +02:00
removed ()
This commit is contained in:
committed by
Gabriel SoHappy
parent
8b9c5561e7
commit
c0171566ba
@@ -314,7 +314,7 @@ setTimeout(myFunction, 5000);
|
|||||||
function myFunction(){
|
function myFunction(){
|
||||||
// this code will be called every 5 seconds
|
// 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
|
// 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.
|
||||||
|
Reference in New Issue
Block a user