How to write a function that returns the index of a number within an array #javascript

Published --