Javascript Array Question 11

Introduction

What is the output of the following code?


let fruitArray = ['apple','peach','lemon','lime'];
let resultString =   fruitArray.join('-'); // apple-peach-lemon-lime

console.log(resultString);


apple-peach-lemon-lime



PreviousNext

Related