HI all! I have the next problem!
My thought is: I would use an array into an if in this mode
function number (foo)
var back = false;
var myArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
if (foo == myArray )
back = true;
function start ()
var foo = 3; //random number
var hello = number (foo);
<button id = "ciao" onclick = "start()"> TRY ME </button>
So, I want to say, verify that my variable that is into my array!!! Is it possible???? And before my var false, change in true!!! But i want to verify that my var foo = 3 is it into my Array!!!
I hope thats clear!