Skip to content

Commit 101b346

Browse files
author
c-moX
committed
Added the javaScript setTiomeOut properties file
1 parent f2ab313 commit 101b346

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

setTimeOut.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Asynchronous Javascript setTimeout, setInterval:
2+
3+
console.log(22222);
4+
console.log(33333);
5+
console.log(44444);
6+
console.log(55555);
7+
8+
// setTimeOut:
9+
// ---------------------
10+
// For call function
11+
// function timeOut() {
12+
// console.log("I'm normal set time out function.");
13+
// }
14+
// setTimeout(timeOut);
15+
16+
// // For setTimeOut keyword in function
17+
// setTimeout(function () {
18+
// console.log("Hello se time out");
19+
// }, 2000)
20+
21+
// // For setTimeOut keyword in arrow keyword function
22+
// setTimeout(() => {
23+
// console.log("Hi i'm here set time out. ");
24+
// }, 4000)
25+
26+
// setInterval:
27+
// ---------------------
28+
setInterval(() => {
29+
console.log("Hello set interval");
30+
}, 1000); // Press control + c (keyboard) and STOP;

0 commit comments

Comments
 (0)