fork download
  1. // your code goes here
  2. const obj={first:"William",second:"Ogbuji",seclast:"John",last:"Mercy"};
  3. obj.last="Favour";
  4. let text="";
  5. for(x in obj)
  6. {text +=obj[x]+","+" "};
  7. console.log(text)
Success #stdin #stdout 0.03s 18672KB
stdin
Standard input is empty
stdout
William, Ogbuji, John, Favour,