Given an array of strings, we want to know if a particular string value is in that array. Here we’ll use the Array object’s .indexOf function.
Given an array of strings, we want to know if a particular string value is in that array. Here we’ll use the Array object’s .indexOf function.