Javascript Tutorial String

Character

  1. Access an individual character with bracket notation and a numeric index in JavaScript
  2. Get the character in the given position for a string in JavaScript
  3. Get the character's character code at the given position in JavaScript
  4. Get the number of characters in the string in JavaScript

Basic

  1. Add a new method to String class in JavaScript
  2. Append more than two strings in JavaScript
  3. Capitalize the words in TextArea in JavaScript
  4. Concatenate one or more strings to another and returns the concatenated string in JavaScript
  5. Count the words in JavaScript
  6. Create String from null in JavaScript
  7. Create String object by calling its constructor: new String() in JavaScript
  8. Escape a string with escape function in JavaScript
  9. Trim white spaces from a String in JavaScript
  10. Unescape escaped string in JavaScript
  11. Use string value literals and escapes in JavaScript

Compare

  1. Check the return result from String.localeCompare in JavaScript
  2. Compare String by converting strings to its uppercase form in JavaScript
  3. Compare a char value in if statement in JavaScript
  4. Compare a string based on locale information in JavaScript
  5. Compare the char value in JavaScript
  6. Compare two strings in JavaScript

Convert

  1. Convert Number to String with toString method in JavaScript
  2. Convert boolean to String in JavaScript
  3. Convert boolean to string with String() in JavaScript
  4. Convert null to string with String() in JavaScript
  5. Convert number to string in radix in JavaScript
  6. Convert number to string with String() in JavaScript
  7. Convert string to lower case based on locale information in JavaScript
  8. Convert string to lower case with toLowerCase() in JavaScript
  9. Convert string to upper case based on locale information in JavaScript
  10. Convert string to upper case in JavaScript
  11. Convert undefined to string with String() in JavaScript
  12. Convert value to String with toString method in JavaScript
  13. Demonstrate that all negative numbers are converted to 0 for string substring function in JavaScript
  14. Parse string in scientific to number in JavaScript

Split

  1. Divide string into several parts with String split() in JavaScript

Sub String

  1. Find all occurrences for the sub string with use while loop in JavaScript
  2. Get sub string with String substr() method in JavaScript
  3. Get sub string with string substring method in JavaScript
  4. Get substring from the end of a string in JavaScript
  5. Get substring from the end with string substr method in JavaScript
  6. Get substring with String slice() method in JavaScript
  7. Start sub string backwards from the middle dle of a string in JavaScript

Length

  1. Get the length of a string in JavaScript
  1. Match string using regular expressions in JavaScript
  2. Search a string from the middle of another string in JavaScript
  3. Search a string using regular expressions in JavaScript
  4. Search a sub string with String indexOf() in JavaScript
  5. Search from the end of a string with String lastIndexOf() in JavaScript
  6. Use indexOf to validate an email address in JavaScript

Replace

  1. Repalce a string with regular expression in JavaScript
  2. Replace a substring with String in JavaScript
  3. Replace string with a custom function in JavaScript
  4. Replace string with regular-expression in JavaScript
  5. Use replace() method to replace letters in JavaScript

Reverse

  1. Reverse string using substr in JavaScript
  2. Reverse the words in JavaScript
Home »
  Javascript Tutorial »
    Data Type »
      String
Javascript Tutorial String
Access an individual character with bracket...
Add a new method to String class in JavaScr...
Append more than two strings in JavaScript
Capitalize the words in TextArea in JavaScr...
Check the return result from String.localeC...
Compare String by converting strings to its...
Compare a char value in if statement in Jav...
Compare a string based on locale informatio...
Compare the char value in JavaScript
Compare two strings in JavaScript
Concatenate one or more strings to another ...
Convert Number to String with toString meth...
Convert boolean to String in JavaScript
Convert boolean to string with String() in ...
Convert null to string with String() in Jav...
Convert number to string in radix in JavaSc...
Convert number to string with String() in J...
Convert string to lower case based on local...
Convert string to lower case with toLowerCa...
Convert string to upper case based on local...
Convert string to upper case in JavaScript
Convert undefined to string with String() i...
Convert value to String with toString metho...
Count the words in JavaScript
Create String from null in JavaScript
Create String object by calling its constru...
Demonstrate that all negative numbers are c...
Divide string into several parts with Strin...
Escape a string with escape function in Jav...
Find all occurrences for the sub string wit...
Get sub string with String substr() method ...
Get sub string with string substring method...
Get substring from the end of a string in J...
Get substring from the end with string subs...
Get substring with String slice() method in...
Get the character in the given position for...
Get the character's character code at the g...
Get the length of a string in JavaScript
...