0 votes
116 views
in Javascript by (2.0k points)
edited

If we want to return the character from a specific index which method is used?

1 Answer

0 votes
by (2.0k points)
selected by
 
Best answer
The JavaScript string charAt() method is used to find out a char value present at the specified index. The index number starts from 0 and goes to n-1, where n is the length of the string. The index value can't be a negative, greater than or equal to the length of the string.

Related questions

0 votes
1 answer 231 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...