JavaScript String Functions With Example

| Last Updated: | In: HTML / CSS, Javascript & Ajax


JavaScript short name (JS) is a dynamic programming language. It can provide the dynamic interactivity on websites when it applied with HTML documents.

It was developed by Brendan Eich, co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation.

Below is the list of JavaScript string functions.

SNString FunctionExample
1trim()
2charAt(index)
3concat(str)
4lastIndexOf(str)
5indexOf(str)
6toLowerCase()
7toUpperCase()
8slice(beginIndex, endIndex)
9split(delimiter, [limit])


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , ,