Web
Opt
tools
Configuration
Input String
Method
at()
charAt()
charCodeAt()
Index Position
Run Visualization
1
Console Output
>
Visual Output
String Characters
H
e
l
l
o
W
o
r
l
d
!
Result:
H
String Length:
12
Selected Index:
5
Method:
charAt()
Method Comparison
charAt():
Returns the character at the specified index in a string.
charCodeAt():
Returns the UTF-16 code unit (numeric value) of the character at the given index.
at():
Returns the character at the specified index (supports negative indexing).