gistlib
index.tsxfor(let i = 1; i <= 100; i++) { console.log(i); } 52 chars4 lines
for(let i = 1; i <= 100; i++) { console.log(i); }
In the code above, we use a for loop starting from 1 and ending at 100. In each iteration, we use console.log() to print the current value of i to the console.
for
console.log()
i
gistlibby LogSnag