Languages
[Edit]
EN

JavaScript - String charAt() method example

4 points
Created by:
Geospatial-Palus
660

1. Documentation

Edit
SyntaxString.prototype.charAt(index)
Parametersindex - integer number value (primitive value).
ResultCharacter from index position (primitive value).
DescriptioncharAt takes only one parameter and return single character from index position inside string.

2. String square bracket operator ([ ]) approach example

Edit

Bracket operator is alternative approach to get specific character from string.

 

Alternative titles

  1. JavaScript - String.prototype.charAt() documentation with examples
  2. js - String charAt() method documentation with examples
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - String (documentation)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join