Convert array to string comma separated in JavaScript
You can use JavaScript Array toString() Method
Example:
var arrTags = ['Software Development and Engineering','Information Technology','Data Science and Analytics'];
var strTags = arrTags.toString();
OutPut: Software Development and Engineering,Information Technology,Data Science and Analytics
Example:
var arrTags = ['Software Development and Engineering','Information Technology','Data Science and Analytics'];
var strTags = arrTags.toString();
OutPut: Software Development and Engineering,Information Technology,Data Science and Analytics
Comments
Post a Comment