for loop in a with code example
Example 1: for loop
for (let i = 0; i < array.length; i++) {
}
Example 2: for loop
for(int i = 0; i < some_number; i++){
//inside loop do whatever you want
}
for (let i = 0; i < array.length; i++) {
}
for(int i = 0; i < some_number; i++){
//inside loop do whatever you want
}