Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
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, 3743👍, 0💬
Popular Posts:
How do we get the current culture of the environment in windows and ASP.NET? “CultureInfo.CurrentCul. ..
Explain simple Walk through of XmlReader ? In this section we will do a simple walkthrough of how to...
What invokes a thread's run() method? After a thread is started, via its start() method of the Threa...
How do I use a scriptlet to initialize a newly instantiated bean? A jsp:useBean action may optionall...
What is test metrics? Test metrics accomplish in analyzing the current level of maturity in testing ...