what is the : in a for loop code example
Example 1: for loop
for (let i = 0; i < array.length; i++) {
}
Example 2: for loop
for (let i = 0; i < substr.length; ++i) {
// do something with `substr[i]`
}
for (let i = 0; i < array.length; i++) {
}
for (let i = 0; i < substr.length; ++i) {
// do something with `substr[i]`
}