- A Joins the elements of an array into a string
- B Splits a string into an array of substrings
- C Removes whitespace from a string
- D none of these
- Share this MCQ
Answer:
A
Share this MCQ
The join()
function joins the elements of an array into a string.
It takes an optional separator as an argument, which is used to separate the elements in the resulting string.
If no separator is provided, the elements are joined with a comma.
Share this MCQ