JavaScript文字列toUpperCase
toLowerCase

toUpperCase文字列

trim

文字列を大文字に変換します。

構文

str.toUpperCase()

使用例

下記の値を入力するとサンプルに即時反映されます。

const
console
toUpperCase
const text = "hello world";
console.log(text.toUpperCase());   // "HELLO WORLD"