Courses / JavaScript
18. String.prototype.toUpperCase()
Returns the calling string value converted to uppercase.
1 min read Chapter 18 of 99
JavaScript
String.prototype.toUpperCase()
It converts any string to uppercase letters.
"I want my text to stand out, but typing everything in caps is tedious."
The `toUpperCase()` method returns a new string with all lowercase letters converted to uppercase. It does not modify the original string.
"I want my text to stand out, but typing everything in caps is tedious."
The `toUpperCase()` method returns a new string with all lowercase letters converted to uppercase. It does not modify the original string.