Oxycodone
KPCKevin Powell - Community
•Created by Oxycodone on 9/29/2023 in #front-end
JavaScript question
Thank you for spending time to write that much! ❤️
19 replies
KPCKevin Powell - Community
•Created by Oxycodone on 9/29/2023 in #front-end
JavaScript question
If this said, in 3rd loop we all agree
i = 2 but…
4th loop : for( i = 2 , 2<3, 2+1)
X= 2 + 3 x = 5
i becomes 3 after the condition is met, not before the condition
19 replies
KPCKevin Powell - Community
•Created by Oxycodone on 9/29/2023 in #front-end
JavaScript question
So the loop calculates what i becomes before starting the loop?
19 replies
KPCKevin Powell - Community
•Created by Oxycodone on 9/29/2023 in #front-end
JavaScript question
The loop goes like this
First i = 0 x = 1
2nd i = 1 x = 2
3rd i = 2 x = 3
Why the code doesn’t start here a 4th time since i < 3. This is the part that gets me
19 replies