34,333
edits
Changes
→Creating a JavaScript String Object
== Creating a JavaScript String Object ==
An instance of a String object is created just as any other object instance is created (See [[JavaScript Object Basics]]).The object is created using the ''new'' keyword with the string to be used as the property passed through as the argument. For example: <pre> myString = new String("This is my string"); </pre>