Es6-string-length
提供:Dev Guides
ES6-文字列プロパティの長さ
このプロパティは、文字列の文字数を返します。
構文
string.length
例:文字列コンストラクタープロパティ
var uname = new String("Hello World")
console.log(uname)
console.log("Length "+uname.length)
//returns the total number of characters
//including whitespace
出力
Hello World
Length 11