In this post, I will summarize 10 javascript string methods you should at least known according to me.

The string is anything inside single or double-quotes.
Here are 10 javascript string methods you should know.

  1. charAt()

Return character at a specified position.

2. includes()

Check if the string contains a specified character(s).

3. endsWith()

Check if the string ends with specified character(s).

4. slice()

Copy some parts of the string without modifying the original one.

5. toUpperCase()

Convert string into upper case.

6. toLowerCase()

Convert string into lower case.

--

--