Well done!

You have completed Manipulating Arrays & String Quiz!

Quiz Question 1 of 6

Given the string "Apple,Banana,Cherry,Grape", what would be the output of the following JavaScript code snippet?

const fruits = "Apple,Banana,Cherry,Grape";
const result = fruits.split(",").join(" - ").split(" ");

Choose the correct answer below:

Skip Quiz Review Instruction