For instance:
var array = ["apple", "banana", "cherry", "date", "elderberry", "fig"];
What is the best way to determine if "apple"
, "banana"
, and "cherry"
are present in the array?
I attempted using the indexOf()
method but struggled to check for multiple strings in the array...