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.
Type | Item | Description |
---|---|---|
Method | anchor() | Creates an instance of the <A> tag with the NAME attribute set to the string passed to the method. |
big() | Converts the string into an instance of the <BIG> tag. ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.