Hello, Use the below code I hope it will work.
let signal = "yellow";
// write logic here
if(signal == "green") {
console.log("Go");
}
else if(signal == "yellow") {
console.log("Wait");
}
else if(signal == "red") {
console.log("Stop");
}
else {
console.log("Error");
}