+ 1
Pages per minute test javascript
Well I can get it to always add 1 but what do I need to change to get the jumps of 20. My code now whit the 1 jump: var i = 0; for (; i<=120; i++) { document.write(i) } I need to change the i++ to make the bigger jumps. Hope u can help. I also tryed this one: var i = 0; for (; i<=120; i++) { console.log(i*20 ); } But this one wonât stop at 120
3 Answers
+ 1
oh thanks some things are ill explaind but i get it:)
+ 1
// Your code here
for(i = 20; i <= 120; i += 20){
console.log(i)
}
0
// Your code here
let pagesMin = 20;
for (i = pagesMin; i < pagesMin * 7; i+=20) {
console.log(i);
}