# The String toUpperCase() method

> 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.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2019-03-08 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/javascript-string-touppercase/

Return a new string with the text all in upper case.

Does not mutate the original string.

Does not accept any parameter.

Usage:

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

If you pass an empty string, it returns an empty string.

It's similar to [`toLocaleUpperCase()`](https://flaviocopes.com/javascript-string-tolocaleuppercase/), but does not consider locales at all.
