[go: up one dir, main page]

0% found this document useful (0 votes)
5 views11 pages

Sunanda JS String Methods

The document outlines various JavaScript string methods including trim(), toUpperCase(), toLowerCase(), charAt(), concat(), indexOf(), lastIndexOf(), slice(), replace(), and split(). Each method is briefly described, detailing its functionality such as removing whitespace, converting case, concatenating strings, and manipulating substrings. These methods are essential for string manipulation in JavaScript programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views11 pages

Sunanda JS String Methods

The document outlines various JavaScript string methods including trim(), toUpperCase(), toLowerCase(), charAt(), concat(), indexOf(), lastIndexOf(), slice(), replace(), and split(). Each method is briefly described, detailing its functionality such as removing whitespace, converting case, concatenating strings, and manipulating substrings. These methods are essential for string manipulation in JavaScript programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

JavaScript String Method's

trim()

toUpperCase() charAt()

concat() indexOf() lastIndexOf()

replace() split()
01 trim()
trim() - removes whitespace from the beginning
and end of a strings.
02 toUpperCase()
toUpperCase() - converts a string to all
uppercase letters.
03 toLowerCase()
toLowerCase() - converts a string to all
lowercase letters.
04 charAt()

charAt() - returns the character at a specific


index in a string.
05 concat()

concat() - concatenates two or more strings.


06 indexOf()

indexOf() - returns the index of the first


occurrence of a specified substring in a string.
07 lastIndexOf()
lastIndexOf() - returns the index of the last
occurrence of a specified substring in a string.
08 slice()
slice() - extracts a section of a string and
returns it as a new string.
09 replace()
replace() - replaces a specified substring with
another substring.
10 split()
split() - splits a string into an array of
substrings based on a specified delimiter
for more!!

You might also like