/

HTML / CSS / JavaScript Tutorial

JavaScript Global method: String()

[this page | pdf | back links]

The JavaScript Global String() method converts an object to a string. It returns the same as the toString() method of the object.

 

It has the following syntax with the following parameters:

 

String(x)

 

Parameter

Required / Optional

Description

x

Required

Input parameter.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile