2022-11-25 【JavaScript】文字列の長さを得る JavaScript lengthプロパティを使う。 console.log('123'.length); console.log('ABC123あいう'.length); 出力 3 9