fork download
  1. const numeros = [2, 5, 6];
  2. let total = 0;
  3. for (const n of numeros) {
  4. total = total * 10 + n;
  5. }
  6. console.log (total);
  7.  
Success #stdin #stdout 0.03s 16812KB
stdin
Standard input is empty
stdout
256