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