What is the join method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the join method?
Rating:
The join method belongs to the Array object. It is used to convert all the elements in an array to one string, and to place it in a variable. The method separates the elements in an array by a delimiter that is passed as an argument in its parentheses.
The syntax of using the join method is as follows:
The following example will demonstrate the use of the join method:
var myVariable=myArray.join(">");
trace(myVariable);
//output: 1>2>3
Rating:
Was this information helpful?
Other articles
- What is the continue keyword?
- Tip for changing the docked toolbar to a floating toolbar.
- What is the extends statement?
- Tip for dragging a copy of selected frames in the Timeline
- What is the use of the Color Swatches panel?