join() is an Array class method which returns the string which is created by converting each element of the array to a string, separated by the given separator.
Return: join value of the array elements
join : 1842243344546 join : 1-4-1-1-88-9 join : 18*22***50*6
join : abc4nil4dog join : cow--dog join : cat**
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.