Es6-methods-tostring
提供:Dev Guides
ES6-StringメソッドtoString()
このメソッドは、指定されたオブジェクトを表す文字列を返します。
構文
戻り値
指定されたオブジェクトを表す文字列を返します。
このメソッドは、指定されたオブジェクトを表す文字列を返します。
string.toString()
指定されたオブジェクトを表す文字列を返します。
var str = "Apples are round, and Apples are Juicy.";
console.log(str.toString( ));
Apples are round, and Apples are Juicy.