How do you check if an array contains a value, for example whether or not "hello" is in the array.
var Greetings = ["hello", "hey", "hi", "sup"];
How would I structure the If statement to check the array. I had previously wrote
if ("hello" == Greetings[]) { // greeting
//runs succsessfully
}
This of course does not work.