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 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
Get step-by-step solutions from verified subject matter experts
