What is the output of console.log(“hello”.length) in JavaScript?
A. hello
B. 5
C. undefined
D. Error
Answer:B
What is the output of console.log(“hello”.length) in JavaScript?
A. hello B. 5 C. undefined D. Error