Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log(name);
- console.log(age);
- hello()
- setTimeout(()=> {
- console.log("I am from setTimeOut One console log 3 sec");
- setTimeout(() => {
- console.log("I am from setTimeOut Three console log 3 sec");
- setTimeout(() => {
- console.log("I am from setTimeOut Four 2 sec");
- setTimeout (() => {
- console.log("I am from setTimeOut Five 5 sec" );
- },5000) //Five 4 sec
- }, 2000) // Four 2 sec
- setTimeout(() => {
- console.log("I am from setTimeOut Four 3 sec ");
- setTimeout (() => {
- console.log("I am from setTimeOut Six 4 sec" );
- },4000) //Six 4 sec
- }, 3000) // Four 3 sec
- }, 3000) //Three 3 sec
- setTimeout(() => {
- console.log("I am from setTimeOut Three console log 2 sec");
- }, 2000) //Three 2 sec
- }, 3000) //One
- setTimeout(() => {
- console.log("I am from setTimeOut Two 2 sec");
- }, 2000) //Two
- function hello(params) {
- console.log("I am from hello function");
- }
- var name = "shopnil"
- let age = 5
- //output
- /* 1.undefined
- 2.refferance error
- 3."I am from hello function"
- 4."I am from setTimeOut Two 2 sec"
- 5."I am from setTimeOut Three console log 3 sec"
- 6."I am from setTimeOut Three console log 2 sec"
- 7."I am from setTimeOut Three console log 3 sec"
- 8."I am from setTimeOut Four 2 sec"
- 9."I am from setTimeOut Four 3 sec"
- 10."I am from setTimeOut Six 4 sec"
- 11."I am from setTimeOut Five 5 sec"
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement