function upto(x) { console.log("print has been started!") for (var i = 1; i < x; i++) { console.log(i); } console.log("print has been finished!") } upto(100);