Ad

Implement binary search. Given an array and a number to look for, return the index of the element in the array.

function binarySearch(numbers, element) {
  
}