const numeros = [2, 5, 6];let total = 0;for (const n of numeros) { total = total * 10 + n;}console.log (total);
Standard input is empty
256
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!