# Most common javascript string function

# **charAt**

**charAt method returns the character at the specified index in a string**

![charAt.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623473640876/5C3L34pRw.png)


# **charCodeAt**

**charCodeAt method returns Unicode of the character at the specified index in a string**

![charCodeAt.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623473683668/b3YXQhexr.png)

# **substr**

**substr extracts the characters from a string, beginning at a specified start position, and through the specified number of character**

![substr (2).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623473736709/wmgcoMD5l.png)

# **substring**

**substring Extracts the characters from a string, between two specified indices**

![substring (2).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623473824214/VSFDl-n3c.png)

# **toLowerCase**

**toLowerCase converts a string to lowercase letters**

![toLowerCase.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623473913876/6Ro1VU5U6.png)

# **toUpperCase**

**toUpperCase converts a string to uppercase letters**

![toLocaleUpperCase.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623474010884/ECs8HzlJn.png)

# **trim**

**trim remove white space from start and end of string**

![trim (2).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623474087559/dX1UY6pc9.png)

# **repeat**

**repeat returns a new string with a specified number of copies of an existing string**

![carbon.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623474341057/0RElVLFKx.png)

# **startsWith**

**startsWith method is used to check whether a string starts with a specific word or not. it returns true or false **

![startsWith.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623474460092/ybB7s8F7f.png)

# **endsWith**

**endsWith is used to check whether a string ends with a specific word or not. it returns true or false **

![endsWith.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623474612488/lZuX5He9f.png)

# **Wrapping up!**

Share this blog with your friends 👩🏼‍🤝‍🧑🏼 and developers 👨‍💻 you know and let them know about these cool string functions

Your feedback and comments are very important to me. 💌

# **Get in touch 🤜🤛**

 [Instagram](https://www.instagram.com/technonic) 

 [YouTube](https://www.youtube.com/c/pratik-lochawala) 

