Convert to Uppercase
Assign the uppercase version of the string
In JavaScript, you can use the
For example:
str to the variable upperCaseStr.In JavaScript, you can use the
.toUpperCase() method to convert all letters in a string to uppercase.For example:
'hello'.toUpperCase() returns 'HELLO'.Premium
JavaScript
Console