Control if inside an array there is a value : I started few times ago coding JavaScript and now I want to check if an Array contains a value. 
I tried to use 
    
    var accountList = [3,4];
    function isInArray(value, array){
        return array.indexOf(value);
    }

    if(isInArray(4, accountList) > -1){
        document.getElementById("pp").innerHTML = "found";
    }`

but it doesn't work. 
I'll want to use this for check if an input is inside and Array, I use the "3,4" value just for try this method.
Someone can help me? :)
P.s: I'm sorry for any error but I'm not english!
