NodeJS - How do I make from python 'for _ in range(number)' in NodeJS/JavaScript

Why... not just use a plain for loop?

for(let i = 1; i < 10; i++) {
  console.log(i);
}