Javascript ToString() Function

The toString() function of array object returns a string representing the array and its elements. Use it for example to get string representation of array elements.

Syntax

Javascript ToString() Function Example

This will produce following result