Edit in JSFiddle
JavaScript
Result
let i = 1; while (i <= 10) { console.log(i); i++; }