CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
22
For Loop: Print 1 to 5Use a for loop to print the numbers 1 through 5, one number per line.
easyNot startedSolve
23
While Loop: CountdownUse a while loop to count down from 5 to 1, printing one number per line.
easyNot startedSolve
24
Do...While Loop: Print 3 TimesUse a do...while loop to print "Practice makes progress" exactly 3 times.
easyNot startedSolve
25
For Loop: Sum 1 to 10Use a for loop to add the numbers 1 through 10, then print the final sum.
easyNot startedSolve
26
For Loop: Print Array ItemsUse a for loop to print each item in the fruits array on its own line.
easyNot startedSolve
27
While Loop: Sum an ArrayUse a while loop to find the total of all numbers in the array.
easyNot startedSolve
28
Do...While Loop: Print Even NumbersUse a do...while loop to print the even numbers from 2 to 8.
easyNot startedSolve
29
forEach: Print Student NamesUse forEach to print each student name with the prefix "Student: ".
easyNot startedSolve
30
forEach: Calculate Total PriceUse forEach to calculate the total of all prices in the array, then print it.
easyNot startedSolve
31
map: Double Each NumberUse map to create a new array where each number is doubled, then print the result as comma-separated values.
easyNot startedSolve
32
map: Convert Words to UppercaseUse map to convert each word in the array to uppercase, then print them as comma-separated values.
easyNot startedSolve
33
filter: Keep Even NumbersUse filter to keep only the even numbers from the array, then print them as comma-separated values.
easyNot startedSolve
34
filter: Keep Long WordsUse filter to keep words that have 5 or more characters, then print them as comma-separated values.
easyNot startedSolve
35
map + filter: Square Even NumbersUse filter first to keep even numbers, then use map to square them.
easyNot startedSolve
36
forEach: Count Passing ScoresUse forEach and an if statement to count how many scores are 60 or higher, then print the count.
easyNot startedSolve
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 one line separated by single spaces.
easyNot startedSolve
86
Count From 1 to 5Use a for loop to print the numbers 1, 2, 3, 4, and 5, each on its own line.
easyNot startedSolve
87
Print the Even Numbers to 10Print all the even numbers from 2 up to and including 10, each on its own line.
easyNot startedSolve
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 inside a loop.
easyNot startedSolve
89
Times Table for 3Print the multiplication table for 3, from 3 x 1 all the way up to 3 x 10.
easyNot startedSolve
90
List Each FruitYou are given an array of fruit names.
easyNot startedSolve
91
Countdown From 5Use a while loop to count down from 5 to 1, printing each number on its own line.
easyNot startedSolve
92
Squares of 1 to 5Print the square of each number from 1 to 5, each on its own line.
easyNot startedSolve
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.
easyNot startedSolve
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 11 + 22 + 33 + 44 + 55) and print the total.
easyNot startedSolve
143
While Loop: Print Powers of TwoUse a while loop to print the powers of two from 1 up to and including 16, each on its own line.
easyNot startedSolve
144
For...of Loop: Print String CharactersUse a for...of loop to print each character of the word "code" on its own line.
easyNot startedSolve
145
For...in Loop: Print Object ValuesUse a for...in loop to print each value in the scores object, one per line, in order.
easyNot startedSolve
146
map: Celsius to FahrenheitUse map to convert each Celsius temperature to Fahrenheit using the formula c 9 / 5 + 32, then print the results joined by ", ".
easyNot startedSolve
147
filter: Keep Positive NumbersUse filter to keep only the numbers greater than 0, then print them joined by ", ".
easyNot startedSolve
148
reduce: Product of an ArrayUse reduce to multiply all the numbers in the array together and print the product.
easyNot startedSolve
149
For Loop: Countdown by TwosUse a for loop to count down from 10 to 0 by twos, printing each number on its own line.
easyNot startedSolve
150
forEach: Sum of AgesUse forEach to add up all the ages in the array and print the total.
easyNot startedSolve
151
Loop: Count Even NumbersLoop over the array and count how many numbers are even, then print the count.
easyNot startedSolve
152
For Loop: Print Letters A to EUse a for loop and String.fromCharCode to print the letters A, B, C, D, E, each on its own line.
easyNot startedSolve
153
map: Get Word LengthsUse map to build an array of the length of each word, then print the lengths joined by ", ".
easyNot startedSolve
60
For Loop: Times Table of FourUse a for loop to print the multiplication table of 4, from 1 to 10.
mediumNot startedSolve
61
reduce: Sum of an ArrayAn array of numbers is given.
mediumNot startedSolve
62
reduce: Largest in an ArrayAn array of numbers is given.
mediumNot startedSolve
63
While Loop: Count the DigitsA positive integer is given.
mediumNot startedSolve
64
Nested Loops: Rectangle of StarsUse nested loops to print a rectangle of stars with 3 rows and 5 columns.
mediumNot startedSolve
65
Loop: Count the VowelsA word is given.
mediumNot startedSolve
93
Sum of Even Numbers to 20Add up only the even numbers from 1 to 20 and print the total.
mediumNot startedSolve
94
Double Each Number, Then Show the TotalYou are given an array of numbers.
mediumNot startedSolve
95
Running Step CountYou have an array of steps walked on each of four days.
mediumNot startedSolve
154
Loop: Factorial of a NumberCompute the factorial of n (the product of every integer from 1 up to n) using a loop, and print the result.
mediumNot startedSolve
155
While Loop: Sum of DigitsUse a while loop to add up the individual digits of the number 1234 and print the sum (1 + 2 + 3 + 4).
mediumNot startedSolve
156
Loop: Find the MaximumLoop through the array and find the largest number without using Math.max, then print it.
mediumNot startedSolve
157
Loop: Count a CharacterLoop over the string "banana" and count how many times the letter "a" appears, then print the count.
mediumNot startedSolve
158
break: Find First Number Over 100Loop through the array and print the first number greater than 100, then stop the loop with break.
mediumNot startedSolve
159
continue: Sum Skipping Multiples of ThreeAdd up the numbers from 1 to 10, but use continue to skip any multiple of 3 (3, 6, 9).
mediumNot startedSolve
160
Loop: Reverse an ArrayBuild a new array with the elements of nums in reverse order (without using the built-in reverse), then print it joined by ", ".
mediumNot startedSolve
161
Loop: Average of an ArrayLoop through the array to find the sum, divide by the number of elements, and print the average.
mediumNot startedSolve
66
Nested Loops: Multiplication GridUse nested loops to print a 3 x 3 multiplication grid.
hardNot startedSolve
67
Loop: FizzBuzz to FifteenUse a loop over the numbers 1 to 15.
hardNot startedSolve
68
Loop: Reverse a StringA word is given.
hardNot startedSolve
162
Loop: Fibonacci SequencePrint the first 8 numbers of the Fibonacci sequence (each number is the sum of the two before it, starting from 0 and 1) as a single line joined by ", ".
hardNot startedSolve
163
Loop: Check Prime NumberDetermine whether the number 29 is prime (divisible only by 1 and itself).
hardNot startedSolve
164
Nested Loops: Number TriangleUse nested loops to print a triangle where row 1 is 1, row 2 is 12, and so on up to row 4.
hardNot startedSolve
165
Loop: Palindrome CheckCheck whether the word "racecar" reads the same forwards and backwards.
hardNot startedSolve