C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




join() method in javascript


Posted Date: 11 Oct 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Bindu Bujji       Member Level: Gold
Rating:     Points: 5



The join() method converts all the elements of an array to a joined string. This method is unlike the concat() method, which concatenates but does not perform any type conversions.



var friends = ["Net", "Giri", "Madhavi","Rekha", "chandra"]
var friendsString = friends.join();
alert(friendsString);


OUTPUT:
=======
Net,Giri,Madhavi,Rekha,chandra

The join() method lets you choose the delimiter, for example i am using @ symbol as below

var friends = ["Net", "Giri", "Madhavi","Rekha", "chandra"]
var friendsString = friends.join("@");
alert(friendsString);


OUTPUT:
=======
Net@Giri@Madhavi@Rekha@chandra





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Join() method in JavaScript  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: get the specific character from string using javascript
Previous Resource: PUSH POP in javascript
Return to Discussion Resource Index
Post New Resource
Category: Javascript


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

UK Conference calling Company

Contact Us    Privacy Policy    Terms Of Use