Sitemap
Jahleel Tucker

Jahleel Tucker

Popular String Methods

Oct 7, 2022

--

replace():

The “replace()” Method allows you to be able to replace a specified value with another value.

toUpperCase()

The ‘toUpperCase()’ method allows you to make the string into uppercase characters.

toLowerCase()

The ‘toLowerCase()’ method allows you to make the string into lowercase characters.

Get Jahleel Tucker’s stories in your inbox

Join Medium for free to get updates from this writer.

concat()

The ‘concat()’ method allows you to join 2 or more strings into one.

indexOf()

The indexOf() method allows you to locate the first occurrence of a value in a string. It will return -1 if the text is not found.

lastIndexOf()

The lastIndexOf() method allows you to locate the last occurrence of a value in a string. It will return -1 if the text is not found.

toString()

The toString() method allows you to be able to return the content of a string.

--

--