-
Notifications
You must be signed in to change notification settings - Fork 0
eigen versie van loops.js toegevoegd #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| // ========================================== | ||
|
|
||
| for (let plekkie = 0; plekkie < 16; plekkie++) { | ||
| console.log(plekkie) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regel 42 is overbodig.
|
|
||
| for (let plekkie = 0; plekkie < 16; plekkie++) { | ||
| console.log(plekkie) | ||
| if (plekkie%2 == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Volgens mij is het conventie om een spatie tussen plekkie, % en 2 te zetten.
| for (let plekkie = 0; plekkie < 16; plekkie++) { | ||
| console.log(plekkie) | ||
| if (plekkie%2 == 0) | ||
| console.log("is even") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vergeet plekkie niet mee te loggen: console.log(plekkie + " is even")
idem bij regel 46.
| // >> 7 | ||
| // >> 9 | ||
| // ========================================== | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik zie de uitwerking van de bonusopdracht niet.
Ik had deze als volgt uitgewerkt:
for (let i = 0; i < 9; i++) {
if (i > 2 && i < 6) {
console.log("> " + i);
}
else if (i > 5 && i < 9) {
console.log(">> " + i);
}
else { console.log(i);
}
}
|
Hi Lasse, kan het kloppen dat ik de uitwerkingen van de file "loops-and-arrays.js mis? Mocht je deze alsnog willen laten reviewen, dan kun je deze via de chat naar mij sturen. |
No description provided.