Skip to content

Commit e7cdce7

Browse files
committed
Setting time out in javascript by function call
1 parent d4ffd26 commit e7cdce7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

settimeout.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function f()
2+
{
3+
var x=19;
4+
setTimeout(function() {
5+
console.log(x);
6+
}, 500);
7+
}
8+
f();
9+
setTimeout(function()
10+
{
11+
console.log("hellow world");
12+
}, 5000);

0 commit comments

Comments
 (0)