setInterval() vs setTimeout() in JS | Coder Gautam
Coder Gautam
Subscribeβ http://bit.ly/Sub2CoderGautam
Hello Guys, welcome back to Coder Gautam. In this video, I am going to compare the setInterval and the setTimeout functions in JS. ππππππππππ(): The setTimeout() method calls a function or evaluates an expression after a specified number of milliseconds. It only executes once.
ππππΈπππππππ(): The setInterval() method is basically the same thing as setTimeout(), but the function or expression executes forever with an "interval" of time you specify
Parameters both functions take: #1. Function to run after waiting
#2. How many milliseconds to wait --
Music: Valcos - A new light [NCS Release] https://www.youtube.com/watch?v=o_v9WSImGIU This is the song I have in my intro also.
Jim Yosef- Arrow [NCS Release] https://www.youtube.com/watch?v=5LI5QZVUU98
Want more Coder Gautam? Check these links! Facebook: https://fb.me/CoderGautamYT Discord: http://bit.ly/CoderGautamDiscord
If you guys enjoyed the video, make sure to like and subscribe to the Coder Gautam channel. Can we hit 465 subs?
Also, comment down below what my next video should be. Make sure it's related to tech or coding.
#CoderGautam #Javascript ... https://www.youtube.com/watch?v=tRlxlnteUqU
27286747 Bytes