Now write the code for this algorithm. You can use repl.it or some other environment to run and test code.
The function you write should accept as parameters an array and a value you want to find. The function should return the index of the found value, and null if not found.