Which method is used to get a part of the string starting from a specific index?

  1. substring(int)
  2. slice(int)
  3. subString(int, int)
  4. cut(int)
Correct answer substring(int)

Explanation

substring(int) returns the part of the string starting from the specified index.

Update: Admin added a tag on this question

Topics

By Admin · · 28 views