Array to String

String  :
   
The split() method is used to split a string into an array of substrings, and returns the new array.length
Syntax. string.split(separator, limit)

 

<script type="text/javascript">
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.write(fruits.push("Kiwi") + "<br />");
document.write(fruits.push("Lemon","Pineapple") + "<br />");
document.write(fruits);
</script>

The .push("Kiwi") and then .push("Lemon","Pineapple") return the new array-length