Array to String
Convert an array to string.
Sample Code:
function arrToStr(arr) {
// Enter your logic here...
}
Examples:
Input: [1,2,3]
Output: '1,2,3'
Explanation: The array has become a string without the square brackets.
Input: ['Java','Javascript']
Output: 'Java,Javascript'
Explanation: The array has become a string without the square brackets.