Hello Mate,
Let's discuss problem statement.
You have to print 1 to 100 without using loop for this you can use `Recursion`.
printNumber = function(i) {
console.log(i);
if(i==100) {
return;
}
printNumber(i+1);
}
printNumber(1);