The String toUpperCase() method
By Flavio Copes
Learn how the JavaScript toUpperCase() method returns a new string with all the text in upper case, without mutating the original or taking any parameter.
~~~
Return a new string with the text all in upper case.
Does not mutate the original string.
Does not accept any parameter.
Usage:
'Testing'.toUpperCase() //'TESTING'
If you pass an empty string, it returns an empty string.
It’s similar to toLocaleUpperCase(), but does not consider locales at all.
~~~
Related posts about js: