I have an array of strings, I want to display the content with some html tags in the alert level. I tried this:
array = ["toto", "titi"] alert("*" + array.join(' '))
Using .concat() and .trim():
var arrStr = ["toto","titi"]; alert([''].concat(arrStr).join(' *').trim());
1.4m articles
1.4m replys
5 comments
57.0k users