19.
Which method is used to convert an array to a string in JavaScript?
toString()
concat()
join()
splice()
Correct: A, C
In JavaScript, the toString() and join() methods are used to convert an array to a string. The toString() method converts each element of the array to a string and concatenates them with commas. On the other hand, the join() method allows you to specify a separator and returns a string by concatenating all the elements of an array separated by the specified separator.