I have this code in JS:
var array = ['one', 'two'];
And each time I want to display the array, it is displayed with like this:
one,two
Now my question is, is there any way to remove that nasty comma?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To display them next to each other, you can use join.
array.join(' ');