Es6-string-touppercase

提供:Dev Guides
移動先:案内検索

ES6-toUpperCase()

このメソッドは、呼び出し文字列値を大文字に変換して返します。

構文

string.toUpperCase()

戻り値

指定されたオブジェクトを表す文字列を返します。

var str = "Apples are round, and Apples are Juicy.";
console.log(str.toUpperCase( ));

出力

APPLES ARE ROUND, AND APPLES ARE JUICY.