Learning JavaScript? Download my free JavaScript Handbook 🔥

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.

Edit this page


Here's my latest YouTube video. I talk about why I think that dogs are a great help for developers working remotely: