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)

JavaScript Animation

Click button below to move the image

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!