charAt文字列
charCodeAt→指定したインデックスの文字を返します。
構文
str.charAt(index)使用例
下記の値を入力するとサンプルに即時反映されます。
const→greeting→console→charAt→const greeting = "Hello, World!";
console.log(greeting.charAt(0)); // "H"
console.log(greeting.charAt(7)); // "W"