Write a simple JavaScript program to join all elements of the following array
into a string.
Sample Input array : myColor = [“Red”, “Green”, “White”, “Black”];
Expected Output :
“Red,Green,White,Black”
“Red,Green,White,Black”
“Red+Green+White+Black”
Answers
Answered by
2
Answer:
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JavaScript Array Join</title>
</head>
<body>
</body>
</html>
Similar questions