- A true
- B false
- C "true"
- D "false"
- Share this MCQ
Answer:
B
Explanation:
The in
operator in JavaScript is used to determine whether an object has a particular property.
In this case, the in
operator is called on x
and y
, with x as the left operand and y as the right operand.
Since y is a string and does not have any properties, the in operator will return false
.
Related Topic: