Programming is really tough for this uncle, how?

jackoats.sg

Junior Member
Joined
Feb 11, 2020
Messages
78
Reaction score
1
Can someone please tell me how to speed up my programming work?

Moving from section 2.1 to section 2.2 of the training book takes many many days. :(
 

jackoats.sg

Junior Member
Joined
Feb 11, 2020
Messages
78
Reaction score
1
What does these codes (javaScript) do?

What is intervalid for?


startExercise(exercisePlan: ExercisePlan) {
const intervalId = setInterval(() => {
...
}, 1000);
}
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
What does these codes (javaScript) do?

What is intervalid for?

intervalid is the handler to the Interval Timer that you set to fire off every second. You can use clearInterval(intervalid) to stop the timer from invoking the lambda function(in your case).

Read documentation to be informed how these API works
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
 
Last edited:

jackoats.sg

Junior Member
Joined
Feb 11, 2020
Messages
78
Reaction score
1
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top