SITE SEARCH

SITE LINKS

    • Js Basic
  • JS HOME
  • JS Intro
  • JS HOW TO
  • JS Where To
  • JS Statements
  • JS Comments
  • JS Variables
  • JS Operators
  • JS Comparisons
  • JS If...Else
  • JS Switch
  • JS Popup Boxes
  • JS Functions
  • JS For Loop
  • JS While Loop
  • JS Break Loop
  • JS For..In
  • JS Events
  • JS Try...Catch
  • JS Throw
  • JS Special Text
  • JS Guidelines

  • JS Objects
  • JS Object Intro
  • JS String
  • JS Date
  • JS Array
  • JS Boolean
  • JS Math
  • JS RegExp
  • JS Html DOM

  • JS advanced
  • Js Browser
  • JS Cookies
  • JS Validation
  • JS Animation
  • JS Image Maps
  • JS Timing
  • JS Create Objects
  • JS Summary

Home Html Css Javascript Php Asp .Net Sql Xml
user login New user? Register Here | Forgot Password?

JavaScript String Object

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

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 following example uses the toUpperCase() method of the String object to convert a string to uppercase letters:

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!

Prev
Next
Top

 

 

© 2010 Copyrighted. Yavum.com™