valueOf() : displaying elementsWe can get all elements of an array by using valueOf(). The elements will be separated by comma. These are the primitive values of the array.
Here is a sample code.
The output is here
We can add another array to this
Output is here
This article is written by plus2net.com team.