What are the difference between settimeout() and cleartimeout()?



What are the difference between settimeout() and cleartimeout()?..

Answer / Bhawna Bhatia

setTimeout() sets a timer which executes a function after a specified delay. clearTimeout() cancels a timeout before it executes. clearTimeout(timerId) cancels the timeout with the given ID.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How is node js used in web development?

1 Answers  


What is Node.js?

1 Answers  


What is difference between synchronous and asynchronous method of fs module?

1 Answers  


What is module?

1 Answers  


What is a response header?

1 Answers  


What is the difference between promise and callback?

1 Answers  


what is libuv in node js?

1 Answers  


What is crypto in Node.js? How do you cipher the secured information in Node.js?

1 Answers  


Why is the importance of a consistent style? What tools can help you assure a consistent style?

1 Answers  


What is a callback in node.js?

1 Answers  


Where node.js can be used?

1 Answers  


What is MongoDB?

1 Answers  


Categories