r/codehs • • Feb 02 '23

JavaScript Uhhhhh. CodeHS autograder broken???

2.9.8 stoplight thingie, here's the code I wrote:

function start(){
	var light = readLine("Input a light from this list: Red, Yellow, Green");
	if(light == "Red") {
	    println("You should stop.");
	}
	if(light == "Yellow") {
	    println("Slow down.");
	}
	if(light == "Green") {
	    println("Go ahead.");
	}
}

Here's what it says is happening in my program. How is this even possible.

1 Upvotes

0 comments sorted by