I am trying to run a foreach loop to keep looping into the var number is reached. I also need to keep track of the index. so far what I have tried
const data = ()=>{
const myNumber = input.getPortCount() // Example currently this will be output a number 0 - 9
foreach(i == 0, i => myNumber ++i){
return console.log('i equals', i)
}
}
I need I to increase by 1 start at 0 into it equal to the number of the variable myNumber