String literals (denoted by double or single quotes) and strings returned from
String
calls in a non-constructor context (i.e., without using the
new
keyword)
If you want to change selection, open document below and click on "Move attachment"
String - JavaScript | MDNethod inherited by String instances.
Distinction between string primitives and String objects
Note that JavaScript distinguishes between String objects and primitive string values. (The same is true of Boolean and Numbers .)
<span>String literals (denoted by double or single quotes) and strings returned from String calls in a non-constructor context (i.e., without using the new keyword) are primitive strings. JavaScript automatically converts primitives to String objects, so that it's possible to use String object methods for primitive strings. In contexts where a Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details