JS: String.prototype.charAt

By Xah Lee. Date: . Last updated: .
str.charAt(index)

Return a string of length 1 that's the String Code Unit at index index of str.

"abc".charAt(0) === "a"

Return empty string if index is out of bound.

"abc".charAt(9) === ""
BUY ΣJS JavaScript in Depth

JavaScript, String, Char, Encoding, Hexadecimal