I have a list that I want to compare to a input value and when the input value doesn't match anything in my list I want to make an alert(Album don't exist).
Here my search bar:-
<input id="search" type="text" name="text" placeholder="Album name">
<button onclick="sendToPage()">Search</button>`
And here my list:-
var validSearch = ["The Stage", "Hail to the King", "Nightmare", "Avenged Sevenfold", "City of Evil", "Waking the Fallen", "Sounding the Seventh Trumpet"];
I have read a suggestion but can´t get my head around it.. :)
validSearch.includes( input.value )