Syntax of toSource method
It has no parameter.
Return value of toSource method
toSource method returns a string representing the source code of the array.
Example of toSource method
numbers = new Array(1,2,3);
colors = new Array("Blue","Green","Red",numbers);
aString = colors.toSource();
["Blue", "Green", "Red", [3, 6, 7]]
Ask Your Question
Got a programming related question? You may want to post your question here