Computer Science, asked by harshdeep0408, 8 months ago

wap to input an array of n elements input another no.and check whether no.is present in that array if present their actual position..pls fast class 10​

Answers

Answered by Anonymous
1

Answer:

hey mate

Explanation:

var arr = [1, 2, 3]; var check = [3, 4]; var found = false; for (var i = 0; i < check. length; i++) { if (arr. indexOf(check[i]) > -1) { found = true; break; } } console. log(found);

Similar questions