W
W
WAYNEDEV2020-02-13 20:31:45
JavaScript
WAYNEDEV, 2020-02-13 20:31:45

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

1 answer(s)
P
profesor08, 2020-02-13
@WAYNEDEV

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 question

Ask a Question

731 491 924 answers to any question