How to convert array to comma separated string in JavaScript

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

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