Javascript String Reference Type

Introduction

The String type is the object representation for strings.

It is created using the String constructor as follows:

let stringObject = new String("hello world"); 

The methods of a String object are available on all string primitives.

The valueOf(), toLocaleString(), and toString() methods return the object's primitive string value.




PreviousNext

Related