print the numbers from 1 to 100 in javascript

index.tsx
for(let i = 1; i <= 100; i++) {
  console.log(i);
}
52 chars
4 lines

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.

gistlibby LogSnag