You can do that using indexOf:
indexOf
const numeros=[2,11,4,40,100,8,101]; const encontrar=numeros.indexOf(100); console.log(encontrar);