From 0b123d0cae45fe3dd6d3e0f7a77a81985b051cf1 Mon Sep 17 00:00:00 2001 From: Yuliia Mustafina <71671138+Mustafina1990@users.noreply.github.com> Date: Sun, 23 Oct 2022 00:20:23 +0200 Subject: [PATCH] add programm --- 2-js-basics/4-arrays-loops/assignment.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/2-js-basics/4-arrays-loops/assignment.md b/2-js-basics/4-arrays-loops/assignment.md index 0b9bd6dc..0b634e76 100644 --- a/2-js-basics/4-arrays-loops/assignment.md +++ b/2-js-basics/4-arrays-loops/assignment.md @@ -8,6 +8,14 @@ Create a program that lists every 3rd number between 1-20 and prints it to the c ## 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 | \ No newline at end of file +| | Program runs correctly and is commented | Program is not commented | Program is incomplete or buggy |