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.
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 15Sample Output 1:
3,6,9,12,15Create a free account to access the full topic