JavaScript String methods

ihteshamulhaq510

ihtesham510

Posted on November 11, 2022

JavaScript String methods

Method Description

charAt(index)   //returns the character at the specified index
concat()    //joins two or more strings
replace()   //replaces a string with another string
split()         //converts the string to an array of strings
substr(start, length)   //returns a part of a string
substring(start,end)    //returns a part of a string
slice(start, end)   //returns a part of a string
toLowerCase()   //returns the passed string in lower case
toUpperCase()   //returns the passed string in upper9 case
trim()  //removes whitespace from the strings
includes()  //searches for a string and returns a boolean value
search()    //searches for a string and returns a position of a match
Enter fullscreen mode Exit fullscreen mode
๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
ihteshamulhaq510
ihtesham510

Posted on November 11, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About