JavaScript Objects The Array Object- toSource() - Javascript Objects

What is JavaScript Array toSource() Method?

Javascript array toSource() method returns a string representing the source code of the array. This method is supported by Mozilla.

Syntax

Its syntax is as follows −

Here is the detail of parameters −

  • NA

Return Value

Returns a string representing the source code of the array.

Example

Output

Returned string is : ["orange", "mango", "banana", "sugar"]


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

Javascript Objects Topics