Question: java script help help write this code Instructions Tests Conditionals Create a function called stopLight 1 parameter: lightColor - a String that will either be

 java script help help write this code Instructions Tests Conditionals Create

java script help help write this code

a function called stopLight 1 parameter: lightColor - a String that will

Instructions Tests Conditionals Create a function called stopLight 1 parameter: lightColor - a String that will either be "red" "yellow" or "green" returns "stop" "slow" or "go" depending on the value of light Color Example function call: stopLight("red") //=> returns "stop" stopLight("yellow") //=> returns "slow" stopLight("green") //=> returns "go" Auto-Run OFF 1 function stopLight(lightcolor) { 2 1/ YOUR CODE BELOW HERE // 6 // YOUR CODE ABOVE HERE //

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!