Explain the working of timers in javascriptAlso eludicate the drawback of using the timerIf any

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions
Js-Java-Script-->View question


Explain the working of timers in javascript?Also eludicate the drawback of using the timer,If any?

explain


By:Akhil-Raj

Taged users:
|Ankita|PerumalS|jeet45|vtunotesbysree|vijayv|Jhon|neenu2|Ebynyzer|Vinesh|metadata|sukhil-vadakkan|Fututron|Aishwarya-shetty-s|Shikhil|13priya|nikhil43874||tarun101|prajwalamv|batsam22|milan-ransingh|visharjun|electron|rathinlz04|Akhil-Raj|Raviteja-Raviteja-Kommuri|Msshikhil|milanyoyoyogmailcom|Aparna-Dasgupta|metaphor

Likes:
Be first to like this question

Dislikes:
Be first to dislike this question

Talk about thisDelete|Like|Dislike|


Answers

Timers are used to execute a piece of code at a set time or also to repeat the code in a given interval of time.
This is done by using the functions setTimeout, setInterval and clearInterval.The setTimeout(function, delay) function is used to start a timer that calls a particular function after the mentioned delay. The setInterval(function, delay) function is used to repeatedly execute the given function in the mentioned delay and only halts when cancelled. The clearInterval(id) function instructs the timer to stop. Timers are operated within a single thread, and thus events might queue up , waiting to be executed .

Amogh

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|
------------------------------------

Can you help us to add better answer here? Please see this



Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!