Convert to string

Report a typo

In the code below an array of numbers is given to the function convertToString(). Using the toString() method convert all the numbers inside this array to a string.

Use console.log() to output the result.

Sample Input 1:

3 6 9 12 15

Sample Output 1:

3,6,9,12,15
Write a program in JavaScript
function convertToString(numbers) {

}
___

Create a free account to access the full topic