JavaScript Array toString()
JavaScript Array toString()
The toString() method is used to return a string with array values separated by commas. It does not change the original array.
Syntax:-
Its syntax is:- array.toString()
Return:-
Its return is:- a string of array values separated by commas.