JavaScript string functions

JavaScript has many string functions to manage our scripts. We will discuss more about these functions with examples here.

We can use them along with many other different function to get our desired output. Here are some of them .
Properties Methods Description
String ObjectHow to declare a string object and use its properties with examples.
toUpperCaseWe can convert any text or string from Lower case to Upper Case text by using this function.
toLowerCaseConvert Upper case text to Lower case text
bold Bold function changes the font style to bold.
length count the total number of chars present including the blank space in a string
charat specify a location and get the character present their by using charat function.
concat add two or more strings by using concat function.
indexOf The first occurrence of a substring within the main string.
replace replace function to search and replace part of a string
reversing a stringcharat and length property to reverse a string
escape Before sending a string over network we can escape it.
search search function to search for a part of a string inside a main string.
slice to collect part of a string by saying start and length of the substring.
substringCollect part of a main string by using substring function.
userid and domain part userid and domain part of an email address by using different string functions.
onblur event Change the case of the text entered by using unblour event handler

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer