Sood RuchikaforRuchikaSoodruchikasood.hashnode.net·Sep 3, 2022Print numbers with setTimeout &setInterval...Given a range, if you want to print numbers in that range at an interval of every 1 second using setTimeout &setInterval then check below code const printNumbers = (from = 1, to) => { //using setTimeout for (let i = from; i <= to; i++) { ...Discuss·9 likes·65 readsSetTimeout
Fatima AliforDev tipsfa994.hashnode.net·Jan 7, 2023CSS vs JavaScript AnimationsCSS or Cascading Style Sheet as the name suggests is used to add style to a web page. Amongst other things, it can also be used to create animations as well as transitions effortlessly. On the other hand, JavaScript is used to make a web page or webs...Discuss·3 likes·72 readsJavaScript
Chibuike CollinsforOkechukwu Chibuike Collins Jr Vizionvizionconcept.hashnode.net·Jul 28, 2022How to Create a bouncy Animated Sign up pageHello World! 👋 This is my first blog and today we will be learning how to Create a bouncy Animated Sign up page. I was inspired by Zander Whitehurst on twitter (You all might know him "The Supafast Figma Guy" 😂) and i will show you how it is done w...Discuss·107 readsCSS Animation
Dev lawrenceforDev Lawrencedevlawrence.hashnode.net·Apr 14, 2023Do you really know how setTimeout and setInterval work?Hey Dev 😀, have you come across the, setTimeout and setInterval methods in JavaScript but you do not really know how they really work and the use cases for each of them. Don’t worry, In this article, you are going to learn what setTimeout and setInt...DiscussJavaScript
Helina AshenafiforHelina Ashenafi's blogconsci210.hashnode.net·Apr 7, 2023A Beginner's Guide to setInterval, setTimeout, and clearInterval in JavaScriptAre you new to JavaScript and wondering how to make your code run smoothly without bogging down your computer's resources? One of the key tools in any JavaScript developer's arsenal is the ability to schedule tasks at a certain time interval or after...DiscussWomenWhoTech
Dhawal PandyaforDhawal Codesdhawalpandya01.hashnode.net·Feb 7, 2023useInterval() vs setInterval()There is a difference other than spelling. We know that one of the common tasks in web development is to update the state of a component at regular intervals, such as updating a clock, displaying a slideshow, or polling for new data. This can be achi...Discuss·46 readssetInterval
Fatima AliforDev tipsfa994.hashnode.net·Jan 7, 2023CSS vs JavaScript AnimationsCSS or Cascading Style Sheet as the name suggests is used to add style to a web page. Amongst other things, it can also be used to create animations as well as transitions effortlessly. On the other hand, JavaScript is used to make a web page or webs...Discuss·3 likes·72 readsJavaScript
Prashant HandelforPrashantBlogsprashanthandel.hashnode.net·Dec 26, 2022Window setInterval() in JavaScriptThe setInterval() method in JavaScript is used to call a specific function repeatedly at every given interval of time. It evaluates an expression or calls a function at given intervals. This method continues the calling of function until the window i...Discuss·85 readsJavaScript
Tushar MukherjeeforTushar Mukherjeetusharmukherjee.hashnode.net·Oct 26, 2022useEffect with setInterval to make a timer.If you are using setInterval with useEffect, you may have got some weird bugs on the run. If you wanted to make a timer, you would create it like this at first, const [time,setTime] = useState(60); useEffect(()=>{ setInterval(()=>{ setTime(ti...DiscussuseEffect
Sood RuchikaforRuchikaSoodruchikasood.hashnode.net·Sep 3, 2022Print numbers with setTimeout &setInterval...Given a range, if you want to print numbers in that range at an interval of every 1 second using setTimeout &setInterval then check below code const printNumbers = (from = 1, to) => { //using setTimeout for (let i = from; i <= to; i++) { ...Discuss·9 likes·65 readsSetTimeout
Hari Krishna Anemforharikrishna.hashnode.net·Jan 1, 2022JavaScript: Print 10 numbers with a delay of 3 seconds// Method 1 for (let i =1; i<=5; i++) { setTimeout(function() { console.log(i) }, i * 3000); } // Method 2 for (var i =1; i<=5; i++) { (function foo(i) { setTimeout(function() { console.log(i) }, i * 3000); ...Discuss·36 readsSetTimeout
Chibuike CollinsforOkechukwu Chibuike Collins Jr Vizionvizionconcept.hashnode.net·Jul 28, 2022How to Create a bouncy Animated Sign up pageHello World! 👋 This is my first blog and today we will be learning how to Create a bouncy Animated Sign up page. I was inspired by Zander Whitehurst on twitter (You all might know him "The Supafast Figma Guy" 😂) and i will show you how it is done w...Discuss·107 readsCSS Animation