Thank u 4 this Video Tutorial. But i have a problem with: When i click Start or Pause Button second time, i cant started oder paused again. Can u Help me?
@tt93784 жыл бұрын
Nice one. Was scratching my head about setInterval but you have given a few pointers. Cheers.
@dcode-software4 жыл бұрын
No worries mate
@GerardSiebels4 жыл бұрын
Amazing! Best tutorial for setInterval I’ve seen! Thanks!
@sahadatsajib87084 жыл бұрын
Thanks Domb, But finally I face a new problem, when i pressed double or more click our start button, then this function didn't work properly (rapid counting),, so Man whats i can do,,??🤔
@dcode-software4 жыл бұрын
You could try having a look at using "clearInterval"
@aniketjadhav78854 жыл бұрын
I'm also facing the same problem..i tried different things but it didn't work if you have any suggestion just let me know
@Zackemcee13 жыл бұрын
Same issue here The more you press the start button the faster the counting will be... It's like a loop but only with the counting part, when you pause it, you're only able to slow down once...
@bassam.20234 жыл бұрын
Needed this. Thank you.
@iliashterev384 жыл бұрын
Interesting, I did not know that clearInterval is keeping track of the numbers passed and it would go further instead of starting from zero again. And so I thought that you will need to get the number from the timerText and re-assign it to count before continue. You tutorial is very good. I am sorry that you are not having more likes. You deserve more.
@emreozgun38463 жыл бұрын
well count is global in this example. nothing to do with set/clear interval. am I missing something ?
@iliashterev383 жыл бұрын
@@emreozgun3846 Well, yes, that is right. Thank you. I do not even remember writing this. I must have been sleeping :)
@emreozgun38463 жыл бұрын
@@iliashterev38 all good :)
@rafaelribeiro82153 жыл бұрын
Hello, i have a problem when i try to run the code. I can't run the code because he said "Cannot read property 'addEventListener' of null" can u help me pls? Thank you.
@acethomas57744 жыл бұрын
Do you know how to do scripts for different functions for an online game I’ll give you an example javascript:setInterval(function()%7BStreetWarsRaidDialog.attack(0)%7D,20),setInterval(function()%7BStreetWarsRaidDialog.attack(1)%7D,20),setInterval(function()%7BStreetWarsRaidDialog.attack(2)%7D,20),setInterval(function()%7BStreetWarsRaidDialog.attack(3)%7D,20),setInterval(function()%7BStreetWarsRaidDialog.attack(4)%7D,20); but there’s other things you can do on the game also that I don’t know how to write a JavaScript for them I just need help on it if at all possible
@sodiqayilara15193 жыл бұрын
Very helpful video, thank you.
@dcode-software3 жыл бұрын
You're welcome!
@padmapriyavks55604 жыл бұрын
If there are four side signal with two colours red and green. It want to be automatically rotate in clockwise using setinterval and clearinterval when green is on, others want to be red how can I do this. Can any one help me to do this?
@Igor-vk8fl Жыл бұрын
But there is a problem. If you click multiple times on the "start timer" it will execute multiple times the function and the numbers start to get counting faster. Even if you click on "Pause timer the same amaount of imes you click on "start timer" it wont stop.
@wesleyknudson2540 Жыл бұрын
did you solve this issue? i got the same
@gabitoth83863 жыл бұрын
Thanks a lot!!
@wiesawzamelski16613 жыл бұрын
This video is super. Thanks.
@dcode-software3 жыл бұрын
Thanks mate
@alifsuria24854 жыл бұрын
Can you show how to use parameter in setInterval()?
2 жыл бұрын
Simple and straightforward code, it solved my problem. Great tutorial!
@vaclavvlcek45273 жыл бұрын
Thank you for this video, it helped me to understand that matter.
@gfddgitgud38482 жыл бұрын
Thanks !
@viv_74753 жыл бұрын
Great VIdeo!
@baxti76 ай бұрын
class
@beastbwoyi70794 жыл бұрын
Your name is DOM?👌👌😂
@letsdev52613 жыл бұрын
awesome
@mohammedjoubba3184 жыл бұрын
Thank you so much
@dcode-software4 жыл бұрын
No problem!
@Sawk-cy7wz2 жыл бұрын
👌
@YoungmeePark11034 жыл бұрын
Best of best !!!
@colindante51642 жыл бұрын
Thanks a whole bunch))
@dcode-software2 жыл бұрын
No problem!!
@stf83754 жыл бұрын
Thanks you a lote!
@frostynemz4 жыл бұрын
thank you, very helpful
@amirhoxha62313 жыл бұрын
This helped alot
@Moe.firouzabadi4 жыл бұрын
Thank you !
@cadillacman37903 жыл бұрын
great tutorial ! Thanks !
@dcode-software3 жыл бұрын
You're welcome.
@chvishnu435 жыл бұрын
Sir please provide 120 seconds time kill JavaScript
@dcode-software5 жыл бұрын
I'm sorry I don't know what you mean, can you explain in a bit more detail?
@chvishnu435 жыл бұрын
Open the URL Sir
@chvishnu435 жыл бұрын
U will find out 20 seconds timer often login but decrease time 20 to 5 seconds please using JavaScript
@dcode-software5 жыл бұрын
20000 milliseconds is 20 seconds so you need to change 20000 to 5000
@chvishnu435 жыл бұрын
Yes sir
@MusicEffekt3 жыл бұрын
please record with a larger font size so that the codes are more readable on screen. Thanks