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 55 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!