JavaScript String Functions With Example

By: Prem Tiwari | Last Updated: | In: Javascript & Ajax, Web Technologies


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.

javasrcipt functions

Below is the list of JavaScript string functions.

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


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also 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.



, , , ,