String Properties of Java
String Properties of Java
Property: Syntax:
Length: This property returns the
number of characters in a string.
string.length
Prototype: The prototype property allows
you to add properties and methods to any object.prototype.name = value
object (Number, Boolean, String, Date, etc.).
String Methods:
Method: Syntax:
charAt():charAt() is a method that returns the string.charAt(index)
character from the specified index.