Compare Revisions

String

Revision 54371:

Revision 54371 by Marcoos on

Revision 54372:

Revision 54372 by daguej on

Title:
String
String
Slug:
JavaScript/Reference/Global_Objects/String
JavaScript/Reference/Global_Objects/String
Tags:
JavaScript, NeedsBrowserCompatibility, "JavaScript Reference", NeedsMobileBrowserCompatibility, Fixit, MakeBrowserAgnostic
JavaScript, NeedsBrowserCompatibility, "JavaScript Reference", NeedsMobileBrowserCompatibility, Fixit, MakeBrowserAgnostic
Content:

Revision 54371
Revision 54372
n7    <h2 name="Summary">n7    <h2 id="Summary" name="Summary">
n13    <h2 name="Syntax">n13    <h2 id="Syntax" name="Syntax">
n30    <h2 name="Parameters">n30    <h2 id="Parameters" name="Parameters">
n41    <h2 name="Description">n41    <h2 id="Description" name="Description">
n47    <h3 name="Character_access">n47    <h3 id="Character_access" name="Character_access">
n68    <h3 name="Comparing_strings">n68    <h3 id="Comparing_strings" name="Comparing_strings">
n87    <h3>n87    <h3 id="Distinction_between_string_primitives_and_String_obje
 >cts">
n94      String literals (denoted by double or single quotes) and stn94      String literals (denoted by double or single quotes) and st
>rings returned from <code>String</code> calls in a non-constructo>rings returned from <code>String</code> calls in a non-constructo
>r context (i.e., without using the <a href="/en/JavaScript/Refere>r context (i.e., without using the <a href="/en/JavaScript/Refere
>nce/Operators/Special/new" title="en/JavaScript/Reference/Operato>nce/Operators/new" title="en/JavaScript/Reference/Operators/Speci
>rs/Special/new"><code>new</code> keyword</a>) are primitive strin>al/new"><code>new</code> keyword</a>) are primitive strings. Java
>gs. JavaScript automatically converts primitives and <code>String>Script automatically converts primitives and <code>String</code> 
></code> objects, so that it's possible to use <code>String</code>>objects, so that it's possible to use <code>String</code> object 
> object methods for primitive strings. In contexts where a method>methods for primitive strings. In contexts where a method is to b
> is to be invoked on a primitive string or a property lookup occu>e invoked on a primitive string or a property lookup occurs, Java
>rs, JavaScript will automatically wrap the string primitive and c>Script will automatically wrap the string primitive and call the 
>all the method or perform the property lookup.>method or perform the property lookup.
n121    <h2 name="Properties">n121    <h2 id="Properties" name="Properties">
n138    <h2 name="Methods">n138    <h2 id="Methods" name="Methods">
n155    <h2 name="String_instances">n155    <h2 id="String_instances" name="String_instances">
n158    <h3>n158    <h3 id="Properties">
n164    <h3>n164    <h3 id="Methods">
n170    <h3>n170    <h3 id="Example">
n185    <h2 name="Browser_Compatibility">n185    <h2 id="Browser_Compatibility" name="Browser_Compatibility">
t225              {{ CompatVersionUnknown() }}t225              9.0

Back to History