fork download
  1. // your code goes here
  2. const Arr=["William","Ogbuji","John","Mercy"];
  3. let text="";
  4. for(let x of Arr)
  5. {text += x+","+" "+"\n"};
  6. console.log(text)
Success #stdin #stdout 0.03s 16856KB
stdin
Standard input is empty
stdout
William, 
Ogbuji, 
John, 
Mercy,