JS Sop2 Writeup-1
JS Sop2 Writeup-1
The String object lets you work with a series of characters; it wraps
Javascript's string primitive data type with a number of helper
methods.
Syntax
String Properties
Here is a list of the properties of String object and their description.
length
1
Returns the length of the string.
String Methods
Here is a list of the methods available in String object along with
their description.
Sr.N
Method & Description
o.
charAt()
1
Returns the character at the specified index.
substr() Returns the characters in a string beginning at the specified
2
location through the specified number of characters.
substring()
3 Returns the characters in a string between two indexes into the string.