CJCoding With Joseph
TitleTopicsAction
22
For Loop: Print 1 to 5Use a for loop to print the numbers 1 through 5, one number per line. Expected ...
easy○ Not Started
Loops
Solve
23
While Loop: CountdownUse a while loop to count down from 5 to 1, printing one number per line. Expec...
easy○ Not Started
Loops
Solve
24
Do...While Loop: Print 3 TimesUse a do...while loop to print "Practice makes progress" exactly 3 times. Expec...
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. Expec...
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. Expected output: 2...
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
101
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. E...
easy○ Not Started
Loops
Solve
102
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
103
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
104
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
105
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
106
map: Celsius to FahrenheitUse `map` to convert each Celsius temperature to Fahrenheit using the formula `c...
easy○ Not Started
Loops
Solve
107
filter: Keep Positive NumbersUse `filter` to keep only the numbers greater than 0, then print them joined by ...
easy○ Not Started
Loops
Solve
108
reduce: Product of an ArrayUse `reduce` to multiply all the numbers in the array together and print the pro...
easy○ Not Started
Loops
Solve
109
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
110
forEach: Sum of AgesUse `forEach` to add up all the ages in the array and print the total. Expected...
easy○ Not Started
Loops
Solve
111
Loop: Count Even NumbersLoop over the array and count how many numbers are even, then print the count. ...
easy○ Not Started
Loops
Solve
112
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
113
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
114
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
115
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
116
Loop: Find the MaximumLoop through the array and find the largest number without using `Math.max`, the...
medium○ Not Started
Loops
Solve
117
Loop: Count a CharacterLoop over the string `"banana"` and count how many times the letter `"a"` appear...
medium○ Not Started
Loops
Solve
118
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
119
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
120
Loop: Reverse an ArrayBuild a new array with the elements of `nums` in reverse order (without using th...
medium○ Not Started
Loops
Solve
121
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
122
Loop: Fibonacci SequencePrint the first 8 numbers of the Fibonacci sequence (each number is the sum of t...
hard○ Not Started
Loops
Solve
123
Loop: Check Prime NumberDetermine whether the number 29 is prime (divisible only by 1 and itself). Print...
hard○ Not Started
Loops
Solve
124
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
125
Loop: Palindrome CheckCheck whether the word `"racecar"` reads the same forwards and backwards. Build ...
hard○ Not Started
Loops
Solve