pratik lochawala
we web developers

we web developers

Most common javascript string function

Most common javascript string function

pratik lochawala's photo
pratik lochawala
ยทJun 12, 2021ยท

1 min read

Subscribe to my newsletter and never miss my upcoming articles

charAt

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

charAt.png

charCodeAt

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

charCodeAt.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

substring

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

substring (2).png

toLowerCase

toLowerCase converts a string to lowercase letters

toLowerCase.png

toUpperCase

toUpperCase converts a string to uppercase letters

toLocaleUpperCase.png

trim

trim remove white space from start and end of string

trim (2).png

repeat

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

carbon.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

endsWith

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

endsWith.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

YouTube

ย 
Share this