CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
22
For Loop: Print 1 to 5Use a for loop to print the numbers 1 through 5, one number per line. Steps: 1....
easy○ Not Started
Loops
Solve
23
While Loop: CountdownUse a while loop to count down from 5 to 1, printing one number per line. Steps...
easy○ Not Started
Loops
Solve
24
Do...While Loop: Print 3 TimesUse a do...while loop to print "Practice makes progress" exactly 3 times. Steps...
easy○ Not Started
Loops
Solve
25
For Loop: Sum 1 to 10Use a for loop to add the numbers 1 through 10, then print the final sum. Steps...
easy○ Not Started
Loops
Solve
26
For Loop: Print Array ItemsUse a for loop to print each item in the fruits array on its own line. Array: [...
easy○ Not Started
LoopsArrays
Solve
27
While Loop: Sum an ArrayUse a while loop to find the total of all numbers in the array. Array: [4, 8, 2...
easy○ Not Started
LoopsArrays
Solve
28
Do...While Loop: Print Even NumbersUse a do...while loop to print the even numbers from 2 to 8. Steps: 1. Start wi...
easy○ Not Started
Loops
Solve
29
forEach: Print Student NamesUse forEach to print each student name with the prefix "Student: ". forEach run...
easy○ Not Started
LoopsArrays
Solve
30
forEach: Calculate Total PriceUse forEach to calculate the total of all prices in the array, then print it. A...
easy○ Not Started
LoopsArrays
Solve
31
map: Double Each NumberUse map to create a new array where each number is doubled, then print the resul...
easy○ Not Started
LoopsArrays
Solve
32
map: Convert Words to UppercaseUse map to convert each word in the array to uppercase, then print them as comma...
easy○ Not Started
LoopsArrays
Solve
33
filter: Keep Even NumbersUse filter to keep only the even numbers from the array, then print them as comm...
easy○ Not Started
LoopsArrays
Solve
34
filter: Keep Long WordsUse filter to keep words that have 5 or more characters, then print them as comm...
easy○ Not Started
LoopsArrays
Solve
35
map + filter: Square Even NumbersUse filter first to keep even numbers, then use map to square them. Print the re...
easy○ Not Started
LoopsArrays
Solve
36
forEach: Count Passing ScoresUse forEach and an if statement to count how many scores are 60 or higher, then ...
easy○ Not Started
LoopsArrays
Solve
59
For Loop: Print Multiples of FiveUse a for loop to collect the multiples of 5 from 5 up to 50, then print them on...
easy○ Not Started
Loops
Solve
86
Count From 1 to 5Use a for loop to print the numbers 1, 2, 3, 4, and 5, each on its own line. Sta...
easy○ Not Started
Loops
Solve
87
Print the Even Numbers to 10Print all the even numbers from 2 up to and including 10, each on its own line. ...
easy○ Not Started
Loops
Solve
88
Add Up the Numbers 1 to 10Calculate the total of all the numbers from 1 to 10 by adding them one at a time...
easy○ Not Started
Loops
Solve
89
Times Table for 3Print the multiplication table for 3, from 3 x 1 all the way up to 3 x 10. Each ...
easy○ Not Started
Loops
Solve
90
List Each FruitYou are given an array of fruit names. Use a for-of loop to go through the array...
easy○ Not Started
Loops
Solve
91
Countdown From 5Use a while loop to count down from 5 to 1, printing each number on its own line...
easy○ Not Started
Loops
Solve
92
Squares of 1 to 5Print the square of each number from 1 to 5, each on its own line. The square of...
easy○ Not Started
Loops
Solve
141
For Loop: Print Odd Numbers 1 to 9Use a `for` loop to print every odd number from 1 to 9, each on its own line....
easy○ Not Started
Loops
Solve
142
For Loop: Sum of Squares 1 to 5Use a `for` loop to add up the squares of the numbers 1 through 5 (that is `1*1 ...
easy○ Not Started
Loops
Solve
143
While Loop: Print Powers of TwoUse a `while` loop to print the powers of two from 1 up to and including 16, eac...
easy○ Not Started
Loops
Solve
144
For...of Loop: Print String CharactersUse a `for...of` loop to print each character of the word `"code"` on its own li...
easy○ Not Started
Loops
Solve
145
For...in Loop: Print Object ValuesUse a `for...in` loop to print each value in the `scores` object, one per line, ...
easy○ Not Started
Loops
Solve
146
map: Celsius to FahrenheitUse `map` to convert each Celsius temperature to Fahrenheit using the formula `c...
easy○ Not Started
Loops
Solve
147
filter: Keep Positive NumbersUse `filter` to keep only the numbers greater than 0, then print them joined by ...
easy○ Not Started
Loops
Solve
148
reduce: Product of an ArrayUse `reduce` to multiply all the numbers in the array together and print the pro...
easy○ Not Started
Loops
Solve
149
For Loop: Countdown by TwosUse a `for` loop to count down from 10 to 0 by twos, printing each number on its...
easy○ Not Started
Loops
Solve
150
forEach: Sum of AgesUse `forEach` to add up all the ages in the array and print the total....
easy○ Not Started
Loops
Solve
151
Loop: Count Even NumbersLoop over the array and count how many numbers are even, then print the count....
easy○ Not Started
Loops
Solve
152
For Loop: Print Letters A to EUse a `for` loop and `String.fromCharCode` to print the letters A, B, C, D, E, e...
easy○ Not Started
Loops
Solve
153
map: Get Word LengthsUse `map` to build an array of the length of each word, then print the lengths j...
easy○ Not Started
Loops
Solve
60
For Loop: Times Table of FourUse a for loop to print the multiplication table of 4, from 1 to 10. Each line s...
medium○ Not Started
Loops
Solve
61
reduce: Sum of an ArrayAn array of numbers is given. Use the array reduce method to add up all of its e...
medium○ Not Started
Loops
Solve
62
reduce: Largest in an ArrayAn array of numbers is given. Use the array reduce method to find the largest va...
medium○ Not Started
Loops
Solve
63
While Loop: Count the DigitsA positive integer is given. Use a while loop to count how many digits it has, a...
medium○ Not Started
Loops
Solve
64
Nested Loops: Rectangle of StarsUse nested loops to print a rectangle of stars with 3 rows and 5 columns. Each r...
medium○ Not Started
Loops
Solve
65
Loop: Count the VowelsA word is given. Use a loop to count how many of its letters are vowels (a, e, i...
medium○ Not Started
Loops
Solve
93
Sum of Even Numbers to 20Add up only the even numbers from 1 to 20 and print the total. Loop through ever...
medium○ Not Started
Loops
Solve
94
Double Each Number, Then Show the TotalYou are given an array of numbers. Use a for-of loop to print each number double...
medium○ Not Started
Loops
Solve
95
Running Step CountYou have an array of steps walked on each of four days. Loop through the array u...
medium○ Not Started
Loops
Solve
154
Loop: Factorial of a NumberCompute the factorial of `n` (the product of every integer from 1 up to `n`) usi...
medium○ Not Started
Loops
Solve
155
While Loop: Sum of DigitsUse a `while` loop to add up the individual digits of the number 1234 and print ...
medium○ Not Started
Loops
Solve
156
Loop: Find the MaximumLoop through the array and find the largest number without using `Math.max`, the...
medium○ Not Started
Loops
Solve
157
Loop: Count a CharacterLoop over the string `"banana"` and count how many times the letter `"a"` appear...
medium○ Not Started
Loops
Solve
158
break: Find First Number Over 100Loop through the array and print the first number greater than 100, then stop th...
medium○ Not Started
Loops
Solve
159
continue: Sum Skipping Multiples of ThreeAdd up the numbers from 1 to 10, but use `continue` to skip any multiple of 3 (3...
medium○ Not Started
Loops
Solve
160
Loop: Reverse an ArrayBuild a new array with the elements of `nums` in reverse order (without using th...
medium○ Not Started
Loops
Solve
161
Loop: Average of an ArrayLoop through the array to find the sum, divide by the number of elements, and pr...
medium○ Not Started
Loops
Solve
66
Nested Loops: Multiplication GridUse nested loops to print a 3 x 3 multiplication grid. The value in row r, colum...
hard○ Not Started
Loops
Solve
67
Loop: FizzBuzz to FifteenUse a loop over the numbers 1 to 15. For each number print: - 'FizzBuzz' if it i...
hard○ Not Started
Loops
Solve
68
Loop: Reverse a StringA word is given. Use a loop to build the reversed version of the string (do not ...
hard○ Not Started
Loops
Solve
162
Loop: Fibonacci SequencePrint the first 8 numbers of the Fibonacci sequence (each number is the sum of t...
hard○ Not Started
Loops
Solve
163
Loop: Check Prime NumberDetermine whether the number 29 is prime (divisible only by 1 and itself). Print...
hard○ Not Started
Loops
Solve
164
Nested Loops: Number TriangleUse nested loops to print a triangle where row 1 is `1`, row 2 is `12`, and so o...
hard○ Not Started
Loops
Solve
165
Loop: Palindrome CheckCheck whether the word `"racecar"` reads the same forwards and backwards. Build ...
hard○ Not Started
Loops
Solve