Posts by Vitoria Silva • 1 point
1 post
-
0
votes5
answers3692
viewsA: create "contain" function that says if an array contains a certain element and returns true
function contem(array,numero){ let aux = array.indexOf(numero) return (aux != -1 == true) }