Question from the Javascript test

How to concatenate an array of strings in JavaScript

Easy

Consider the following JavaScript code:

const array = ['apple', 'banana', 'cherry'];
const string = array.join(', ');

What will string contain after executing this code?

Author: AxelStatus: PublishedQuestion passed 67 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!