Consider the following array :
let trees = ['redwood', 'bay', 'cedar', 'oak', 'maple'];
The output for 'bay' in trees is false.
Similary if I do something like above for the array containing numbers it is giving me unexpected output -
let numbers = [1,2,3,4] .The output for 1 in numbers is true.