createa. loop in javascript

index.tsx
// There are different types of loops in JavaScript, such as for loop, while loop, and do-while loop.
// Here is an example of a for loop that prints numbers from 1 to 5:

for (let i = 1; i <= 5; i++) {
    console.log(i);
}
225 chars
7 lines

related categories

gistlibby LogSnag