1
I am practicing a javascript exercise that asks us to use the "for" function to repeat 5 times the number 5 on the screen. But they claim the code is wrong and I don’t know what I’m doing wrong:
function imprimir5vezes(){
for(var i=0;i<5;i++) {
console.log(i)
}
}
In time, to check, what I have to write to the console to check the function is console.log(i) or console.log(print5 times)?
Thank you!
Hi Luan! Thank you very much!
– kathryn
It was nothing, and one more thing when post questions about exercises if you are doing on any platform try to specify it, so in case someone already knows what it is or has been through the same thing will be easier to answer.
– Luan Sabino