Skip to content

toUpper

String.prototype.toUpper()

转化为大写。

返回值:String

js
console.log('banana'.toUpper());