I understand that an array is being declared in line 3.
Line 6 queries the array. But how? I don't see any variable being passed around.
$(function(){
var currencies = ["stack", "over", "flow"];
// setup autocomplete function pulling from currencies[] array
$('#autocomplete').autocomplete({
lookup: currencies,
onSelect: function (suggestion) {
$('#outputcontent').html(thehtml);
}
});
});
Autocomplete Search: https://codepen.io/DinhTrieu/pen/PwXqGR/