JavaScript Objects The Strings Object- toString() - Javascript Objects

What is JavaScript String - toString() Method?

This method returns a string representing the specified object.

Syntax

Its syntax is as follows −

Return Value

Returns a string representing the specified object.

Example

Observe the following example.

Output

Apples are round, and Apples are Juicy.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics