ไม่มีฟังชั่นใดๆ ที่แก้ไขตัวแปรโดยตรง this – ฟังชั่นจะส่งค่าสตริงตัวใหม่คืนกลับมาให้เสมอ
- 
charAt(ตำแหน่ง: ตัวเลข): คืนค่าเป็นข้อความES1Returns the character at index pos, as a string (JavaScript does not have a datatype for characters).str[i]is equivalent tostr.charAt(i)and more concise (caveat: may not work on old engines).