Single Choice
Easy
QWhat does the following function do in JavaScript?
function toUpperCase(str) {
return str.toUpperCase();
}
ID: #4911
Javascript Data Types MCQ
296 views
Question Info
#4911Q ID
EasyDifficulty
Javascript Data Types MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
This function takes in a single argument, str, and uses the toUpperCase() method to convert the string to uppercase.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic