fork(1) download
  1. // your code goes here
  2. const json='{"name":"william","class":"grade1"}';
  3. let out="";
  4. let obj=JSON.parse(json);
  5. let len=obj.length;
  6. for(let x=1; x<len; x++)
  7. {out +=x; }
  8. console.log(out);
Success #stdin #stdout 0.04s 16924KB
stdin
Standard input is empty
stdout