We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2498267 commit f420492Copy full SHA for f420492
D. Loop/For/countdown.js
@@ -3,6 +3,16 @@
3
Implement a countdown timer that counts down from 81 to 65.
4
5
*/
6
+
7
+// Solution-1
8
for (let i = 81; i >= 65; i--) {
- console.log(i);
9
+ if (i % 2 === 0 || i % 2 === 1) {
10
+ console.log(i);
11
+ }
12
+}
13
14
15
+// Solution-2
16
+for (let j = 81; j >= 65; j--) {
17
+ console.log(j);
18
}
0 commit comments