Get to know Javascript String type

Description

The String type is the object representation for strings and is created using the String constructor:

Example


var stringObject = new String("hello world"); 
console.log(stringObject);

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window