The timing feature of node.js contains all the necessary functions that are required to execute code after any specific period. As it is built on the V8 JavaScript engine of Google Chrome, hence its library permits the fast execution of code. Timers also provide a number of ways for managing schedules. They don't need to be imported as all the methods are easily available for the browser.

Some modules are –
  • setTimeout
  • setInterval
  • setImmediate
  • clearImmediate(immediate)
  • clearTimeout(timeout)
BY Best Interview Question ON 04 Jul 2019