I'm stuck with trying to change my value according to what
the current time is. So basically at "30" seconds, according to my
current time, I'm trying to increase my value by 100. So what's
meant to happen is every minute at 30 seconds my time a value
increases by 100. I don't know what the code is to do this check
every second. Could someone please help with it. Thanks in advance.
you can use setInterval() to call a function every 1000 ms
that would check your date instance. but it would probably suffice
(and be more efficient) to just update myValue1 every 30000 ms by
calling a function.