• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

String()

JavaScript1.0+, JScript1.0+, ECMAScript1.0+ NES2+, Nav2+, IE3+, Opera3+ Syntax

var variable = new String(string);

"string"

Description

The String() object is one of the core JavaScript objects. Instances are created when a program constructs an instance using the new keyword and passing it the String() object. In JavaScript 1.0, instances were also created when programmers quoted characters in their script. Table 6.33 lists the properties and methods used by this object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint