DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
repeat a function javascript
setInterval
(
function
(
)
{
console
.
log
(
"Hello"
)
;
console
.
log
(
"World"
)
;
}
,
2000
)
;
//repeat every 2s
PREVIOUS
NEXT
Tagged:
#repeat
#function
#javascript
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit