String toUpperCase() method

Find all information about the JavaScript toUpperCase() method of the string

Returns a new string with all text in uppercase.

Does not mutate the original string.

No parameters are accepted.

usage:

'Testing'.toUpperCase() //'TESTING'

If you pass an empty string, it will return an empty string.

Similar totoLocaleUpperCase(), But does not consider the locale at all.

Download mine for freeJavaScript beginner's manual


More js tutorials: