Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
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?
✍: Guest
"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
2011-07-26, 3116👍, 0💬
Popular Posts:
What is hashing? To hash means to grind up, and that's essentially what hashing is all about. The he...
How To Control Vertical Alignment? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells By d...
What are different properties provided by Objectoriented systems ? Following are characteristic’s of...
If we have two version of same assembly in GAC how do we make a choice ? OK first let’s try to under...
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..