You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
657 B
657 B
Loop an Array
Instructions
Create a program that lists every 3rd number between 1-20 and prints it to the console.
TIP: use a for-loop and modify the iteration-expression
Rubric
for (let i = 0; i <= 20; i++) {
if (i % 3 == 0 && i != 0) {
console.log(i);
}
}
| Criteria | Exemplary | Adequate | Needs Improvement |
|---|---|---|---|
| Program runs correctly and is commented | Program is not commented | Program is incomplete or buggy |