Add specific number to variable every 5 minutes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Add specific number to variable every 5 minutes.

var count = 0 if (count >= 0; count++; 999;) document.getElementById("count").innerHTML I havent done this for a while. I need extra code for time. Also I want the change to make a difference at the same place not one underneath the other. This does nothing. I remind myself about the language and get back on the correct path. many thanks

25th May 2019, 12:20 PM
Miki
2 Answers
+ 4
const five_minutes = 5 * 1000 * 60; const count = document.getElementById("count"); let counter = 0; setInterval(() => { counter += 1234; count.innerText = counter; }, five_minutes);
25th May 2019, 12:25 PM
Schindlabua
Schindlabua - avatar
+ 1
I know that ladies like boats and cruise ships, however there must be much easier way to tell others about it.
25th May 2019, 3:02 PM
Miki