Computer Science, asked by redent3131, 9 months ago

select correct method name of String object is --------.
charAt()
characterAt()
valueAt()
lengthAt()

Answers

Answered by gothivarekarkhushi21
8

Answer:

length At() can be the method name of string object

Answered by adventureisland
0

Select correct method name of String object is charAt().

About charAt() method :

  • The method charAt() returns the character at the provided index. A string's characters are indexed form left to right.
  • The first character in such a string, called stringName, has an index of 0, and the last character in some kind of a string, named stringName, has an index of stringName. length – 1.
  • charAt() is a JavaScript string method that retrieves a character from a specified position in a string.
  • Because the charAt() function is just a String object method, and must be used with a String object.

Similar questions