Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JavaScript: Assignment: - [E] Implement and test stopCountDownTimer() method per comments. - [F] Implement and test displayCountDown() method per comments - [G] Implement and test
JavaScript: Assignment: - [E] Implement and test stopCountDownTimer() method per comments. - [F] Implement and test displayCountDown() method per comments - [G] Implement and test countDown() method per comments. countDown: function() { // TODO [G]: Decrement and display count down value and reach 0 stop timer // Hint: You will need to call displayCountdown() and stopCountDownTimer() displayCountDown: function() { // TODO [F]: Update countdown span element with current countdown value // Hint: Get a reference to count down span and set the span textContent property with the counter }, startCountDownTimer: function(start) { this._startCount = start; this._counter = this._startCount; this.displayCountDown(); this._intervalID = setInterval(this.countDown.bind(this), 1000); }, stopCountDownTimer: function() { // TODO [E]: Stop timer using object timer property // Hint: Will need to call clearInterval() },
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started