5.
Which method is used to convert a string to lowercase in JavaScript?
.toLowerCase()
.toLower()
.lowerCase()
.lower()
Correct: A
In JavaScript, the .toLowerCase() method is used to convert a string to lowercase. The method does not have parentheses, so A2 (.toLower()) is incorrect. A3 (.lowerCase()) and A4 (.lower()) are not valid methods for converting a string to lowercase in JavaScript.