I have been trying this and i have no idea what i am doing , i think it will use for loop but i dont know how to use it
<script LANGUAGE="javascript">
function check(a)
{
if(a===list[a])
{
document.write("Number is Present");
}else{
document.write("Number is not Present");
}
}
</script>
<script LANGUAGE="javascript">
var list=[10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
var n = prompt("Enter any Number");
check(n);
console.log(list);
</script>