xxxxxxxxxx
//The fastest way to perform a search through an UNSORTED array is to search through all the elements in order
//The array.indexOf() property of javascript has a time complexity of O(n)
//Output examples of the method:
const array = [2, 9, 9];
array.indexOf(2); // 0
array.indexOf(7); // -1
array.indexOf(9, 2); // 2
array.indexOf(2, -1); // -1
array.indexOf(2, -3); // 0