What will be the output of the following code snippet? (in operator)
@Yomesh Gupta
const first = 2 in [1, 2];
const second = '2' in [0, 1, 2];
console.log(first, second);
Option 1
false true
Option 2
true false
Option 3
false false
Option 4
true true
Option 5
undefined undefined
Option 6
ReferenceError: in is not defined
Option 7
undefined true
Option 8
true undefined