programming-examples/js/Array/Write a simple JavaScript program to join all elements of the following array into a string..js

4 lines
150 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
myColor = ["Red", "Green", "White", "Black"];
console.log(myColor.toString());
console.log(myColor.join());
console.log(myColor.join('+'));