How can I get the following function to return multiple color types (not just red, but also orange, yellow, etc.) without using multiple if/else statements?
function isRainbowColor(color){
if (color === "red"){
return true;
}else{
return false;
}
}
console.log(isRainbowColor("red"));
//This returns true, but only for one color at a time. How can I add onto ?