Javascript for statement sum integer
let number = 1; /*from w w w. j a v a 2 s .co m*/ let sum = 0; for (let number = 1; number < 11; number++) { sum += number; } console.log(sum);