What is Javascript String? JavaScript String Methods

Gowtam kumar
2 min readMay 5, 2021

A JavaScript string of characters like “Gowtam Kumar”.

IndexOf: IndexOf is javascript String. IndexOf used the Array method. so when array data were present then used IndexOf. When need to know where is data then we are use indexOf.

Slice: Slice is a javascript method. slice use help to data find

ToLowerCase Method: LowerCase is most use javascript method.

CharAt: It returns the character at the specified index.

Concat: It joins two or more strings

forEach: It calls a function for each element in the array.

indexOf: It returns the index within the calling String object of the first occurrence of the specified value.

length: returns the length of the string.

pop: It removes the last element from an array and returns that element.

push: It adds one or more elements to the end of an array and returns the new length of the array

.reverse: It reverses the order of the elements of an array.

--

--