I'm having an array:
var something = ["1","2","3","4"] ;
I'll ask the user in a prompt to pick a number. if it corresponds to any value in the array it triggers something.
My question is: How do i check if the input corresponds to any array value?
if(something === "input"){
console.log("u picked a good number");
}
Of course if statement i have now is incorrect, but how do i make it check every value in the array, and see if anything corresponds?
Would be awsome if someone could help me on this one! ;)
thxx!