Answer the question
In order to leave comments, you need to log in
How to keep track of new Date().getSeconds in node?
I can't find a watcher/plugin that will keep track of a variable where new Date().getSeconds is assigned.
Each time this variable is changed, a certain function must be executed.
The very essence of the task is to call the function if the given variables have changed.
What should be done? SetInterval is not strictly appropriate
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
https://developer.mozilla.org/en/docs/Web/JavaScri...
Actually, after reading, you can do this thing `obj.seconds = new Date().getSeconds()` and the actions you need will be called .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question