Array.prototype.toStringbeginnerconst arr = [1, 2, 3]
arr.toString() // β '1,2,3'Use toString() to convert an array to a comma-separated string of its elements.
toString joins all array elements into a single comma-separated string β equivalent to calling join(',').
Implement arrayToString which returns the string representation of a number array.