How To Use "join()" To Create A String From An Array Using JavaScript

How To Use "join()" To Create A String From An Array Using JavaScript


  • 16 Dec, 2011

    "join" concatenates the array elements with a specified separator between them in JavaScript.<script type="text/javascript">var days = ["Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"];document.write("days:"+days.join(","));</script>This producesdays:Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.