How to convert array to comma separated string in JavaScript

Arrays
By Jad Joubran · 
Last updated Dec 18, 2017
const elements = ["Eat", "Sleep", "Code", "Repeat"];

elements.join(",");
Eat,Sleep,Code,Repeat
Array.join on MDN