Implement BinarySearch in JavaScript or Java and provide an execution trace including a list of the values of low, high, and mid after each iteration, for the list:
(2,3,5,11,13,17,19,23,29,31,37) using the following search elements:
X = 3 and X = 24
Algorithms