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+","+" "};
  6. console.log(text)
Success #stdin #stdout 0.02s 18824KB
stdin
Standard input is empty
stdout
William, Ogbuji, John, Mercy,