The JavaScript method .toUpperCase() returns the same string it was called on, but in all upper case.
.toUpperCase()
Syntax
str.toUpperCase()
console.log("hello world".toUpperCase()); // Console will output "HELLO WORLD"
Source MDN
There was an error while loading. Please reload this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links