The toUpperCase()
method returns the calling string value converted to uppercase.
str.toUpperCase()
The toUpperCase()
method returns the value of the string converted to uppercase. toUpperCase()
does not affect the value of the string itself.
toUpperCase()
console.log('alphabet'.toUpperCase()); // 'ALPHABET'
Created by Mozilla Contributors, license: CC-BY-SA 2.5