0
What is the output of the following JavaScript code?
console.log([..."abc"].reverse().join(""), typeof NaN, [1, 2, 3].indexOf(4));- Aabc number 0
- Bcba NaN -1
- Ccba number undefined
- Dcba number -1
Correct answer: D
What is the output of the following JavaScript code?
console.log([..."abc"].reverse().join(""), typeof NaN, [1, 2, 3].indexOf(4));