I am trying to make a JavaScript autocomplete function. Below is my JavaScript code:
function autocomplete(inp, arr) { /*the autocomplete function takes two