• Home
  • About Us
  • Courses
  • Accreditation
  • FAQ
  • Academic Study Center
  • E-Learning
  • Contact Us
  • aecu

  • JavaScript Home
  • JavaScript Introduction
  • JavaScript How To
  • JavaScript Where To
  • JavaScript Statements
  • JavaScript Comments
  • JavaScript Variables
  • JavaScript Operators
  • JavaScript Comparisom
  • JavaScript If....Else
  • JavaScript Switch
  • JavaScript Popup Boxes
  • JavaScript Functions
  • JavaScript For Loop
  • JavaScript While Loop
  • JavaScript Break Loop
  • JavaScript For....In
  • JavaScript Events
  • JavaScript Try....Catch
  • JavaScript Throw
  • JavaScript Special Text
  • JavaScript Guidelines
  • JavaScript Ojects Intro
  • JavaScript String
  • JavaScript Date
  • JavaScript Array
  • JavaScript Boolean
  • JavaScript Math
  • JavaScript RegExp
  • JavaScript Brower
  • JavaScript Cookies
  • JavaScript Validation
  • JavaScript Animation
  • JavaScript Image Maps
  • JavaScript Timing
  • JavaScript Create Object
  • JavaScript Summary

  • Learn at your own pace

JavaScript String Object

Previous Chapter
Next Chapter

The String object is used to manipulate a stored piece of text.


Complete String Object Reference

For a complete reference of all the properties and methods that can be used with the String object, go to our complete String object reference.

The reference contains a brief description and examples of use for each property and method!


String object

The String object is used to manipulate a stored piece of text.

Examples of use:

The following example uses the length property of the String object to find the length of a string:

var txt="Hello world!";
document.write(txt.length);

The code above will result in the following output:

12

The following example uses the toUpperCase() method of the String object to convert a string to uppercase letters:

var txt="Hello world!";
document.write(txt.toUpperCase());

The code above will result in the following output:

HELLO WORLD!
Previous Chapter
Next Chapter
 

 
 
Home|
About Us|
Courses|
Accreditation|
FAQ|
Academic Study Center|
E-Learning|
Contact Us
©  AECU 2004-2010 , All rights Reserved