What is the output of the following JavaScript code?
console.log([1, 2, 3].includes(2), [NaN].includes(NaN), [NaN].indexOf(NaN));- Atrue true 0
- Btrue false -1
- Ctrue true -1
- Dtrue false 0
Correct answer: C
What is the output of the following JavaScript code?
console.log([1, 2, 3].includes(2), [NaN].includes(NaN), [NaN].indexOf(NaN));