Home »
MCQs »
JavaScript MCQs
Which property is used to get the length of a string in JavaScript?
49. Which property is used to get the length of a string in JavaScript?
- strlen
- len
- length
- Length
Answer: C) length
Explanation:
The length property is used to get the length of a string in JavaScript.