JavaScript Tutorial For Beginners #42 – JavaScript Timers




Yo ninjas, in this tutorial I want to teach to you the amazingness of JavaScript timers :). Timers are used all over the show in JavaScript, in anything from popup forms to image sliders. They are a cool feature of JavaScript and well worth mastering if you want to create slightly more advanced interactivity!

The functions we use for JavaScript timers are:

setTimeout()
setInterval()

Any questions, just ask 🙂

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

========== Social Links ==========

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

Original source


20 responses to “JavaScript Tutorial For Beginners #42 – JavaScript Timers”

  1. great video !! Thank you !
    I have a question , in the end of the demo, after storing the interval function into variable myTimer, you did not call the interval function ( only assigned variable to it) , but the color still changes after you refresh the page . can anyone tell me why?

  2. Great tutorials so far man, very helpful. I just have a question for the css portion here. where u have two paddings what does the second one represents? is the first one hight and second one from right. and also the margin, why u have 0 and auto. is zero for the top and auto for centring it?

Leave a Reply