JavaScript Tutorial: SetTimeout & SetInterval | setTimeout v/s setInterval | Timers in Node.js

preview_player
Показать описание
#settimeout #setinterval #javascript #nodejs #nodejstutorial #javascripttutorials #codewithsumit #javascripttutorial #javascriptbasics #nodejsbasics #nodejstutorial #settimeoutvssetinterval

Time module official documentation.

setTimeout()
=================
setTimeout() can be used to schedule code execution after a designated amount of milliseconds.
setTimeout() accepts a function to execute as its first argument and the millisecond delay defined as a number as the second argument.

setInterval()
================
If there is a block of code that should execute multiple times, setInterval() can be used to execute that code. setInterval() takes a function argument that will run an infinite number of times with a given millisecond delay as the second argument

-~-~~-~~~-~~-~-
Please watch: "C Programming Tutorials | Operators in C | Unary, Binary and Ternary Operators in C | C Operators"
-~-~~-~~~-~~-~-
Рекомендации по теме