String.valueOf

valueOf

Description

String.valueOf()

Return values

string primitive.

Examples

Example #1 – valueOf example
console.log('Hello World'.valueOf()); // Hello World

External references