toUpperCase()

var surname = "Smith"
surname = surname.toUpperCase()
// the variable surname will contain the value "SMITH"

Close