Alternatively, because strings can be treated like arrays, use the index via bracket notation. var string = "Hello, World!"; console.log( string[4] ); // "o".
確定! 回上一頁