Question: JavaScript (easy last step) Please help to finish my code currently I an image moving to the right with the start and stop button (my
JavaScript
(easy last step)
Please help to finish my code currently I an image moving to the right with the start and stop button (my goal is to make the Start/Stop combine to one button when start is clicked it changes to stop etc and keeps going I have a rough idea how this works "if you can add a quick explanation that will be great)
// i think it roughly goes like this
//functon to create Start and Stop button //function checkButton() {
//If the value at button is Start change it to Stop
//if (document.getElementById("roboButton").value =="Start") {
// document.getElementById("roboButton").value="Stop";
// roboAnim();
// } else {
//If the value is Stop then change it to Start
// document.getElementById("roboButton").value="Start";
// clearTimeout(timerToggle); // } }
(this hasnt been added and has a diffrent element id )
(the following is the code that i have)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
