setTimeout in the same function to whom it is calling?

I have learned that the setTimeout function runs once and the setInterval runs continuously after the specified time but when I am calling the setTimeout function in the same function it is calling it is behaving like the setInterval but when I am doing setInterval instead of set timeout it is behaving weird.
can anyone tell me what is happening to setTimeout and setInetval in function?

code with setTimeout

function hello(){
  console.log("hello");
  setTimeout(hello,2000)
}
hello()

code with SetInterval

function hello(){
  console.log("hello");
  setInterval(hello,2000)
}
hello()

Thanks in Advance

201 thoughts on “setTimeout in the same function to whom it is calling?”

  1. Pingback: womens viagra
  2. Pingback: free viagra
  3. Pingback: cialis for sale
  4. Pingback: buy cialis online
  5. Pingback: otc viagra
  6. Pingback: viagra for sale
  7. Pingback: purchase viagra
  8. Pingback: cialis oral
  9. Pingback: buy viagra tablet
  10. Pingback: levitra vs cialis
  11. Pingback: viagra pill
  12. Pingback: viagra pro 100mg
  13. Pingback: does cialis work
  14. Pingback: sildenafil
  15. Undeniably believe that which you stated. Your favorite reason seemed to be
    on the net the simplest thing to be aware of. I say to you, I definitely get irked while people think
    about worries that they just do not know about. You managed to hit the nail upon the top as well
    as defined out the whole thing without having side-effects , people could take a signal.
    Will probably be back to get more. Thanks http://ciaalis2u.com/

    Reply
  16. Pingback: discount viagra
  17. Pingback: viagra generic
  18. Pingback: viagra alternative
  19. Pingback: viagra generico
  20. Pingback: walmart viagra
  21. Pingback: cialis vs viagra
  22. Pingback: female viagra
  23. Pingback: viagra men
  24. Pingback: sildenafil citrate
  25. Pingback: buy viagra cheap
  26. Pingback: viagra sildenafil

Leave a Comment