create a loop from 10 to 17 in javascript

You can create a for loop from 10 to 17 in javascript like this:

index.tsx
for (let i = 10; i <= 17; i++) {
  // your code goes here
}
60 chars
4 lines

This loop will execute the code within the block for i values ranging from 10 to 17, inclusive. You can use the loop variable i within the block to access and manipulate values.

related categories

gistlibby LogSnag