CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
191
If: Hot DayThe variable temperature holds today's temperature in Celsius. Write a single if...
easy○ Not Started
If Statements
Solve
192
If: Passing ScoreThe variable score holds a test result. Write one if statement that prints `You ...
easy○ Not Started
If Statements
Solve
193
If: Skipped When FalseThe variable age is 15. Write an if statement that prints `Adult` only when age ...
easy○ Not Started
If Statements
Solve
194
If: Exactly EqualThe variable answer holds a guess for a quiz. Write one if statement that prints...
easy○ Not Started
If Statements
Solve
195
If: Not EqualThe variable color holds the name of a color as text. Write an if statement that...
easy○ Not Started
If Statements
Solve
196
If: OverdrawnThe variable balance holds a bank balance in dollars. Write an if statement that...
easy○ Not Started
If Statements
Solve
197
If: Free ShippingThe variable items holds the number of items in an order. Orders of 10 items or ...
easy○ Not Started
If Statements
Solve
198
If: Speed CapThe variable speed holds a car's speed. Write an if statement that lowers speed ...
easy○ Not Started
If Statements
Solve
199
If: Absolute ValueThe variable number holds a negative value. Write an if statement that flips the...
easy○ Not Started
If Statements
Solve
200
Two Independent IfsThe variable number is 12. Write two separate if statements, one after the other...
easy○ Not Started
If Statements
Solve
201
Three Independent Ifs, Then DoneThe variable x is 50. Write three separate if statements (not an else-if chain) ...
easy○ Not Started
If Statements
Solve
202
If / Else: Even or OddThe variable number holds a whole number. Use an if / else statement to print `E...
easy○ Not Started
If Statements
Solve
203
If / Else: Adult or MinorThe variable age holds a person's age. Print `Adult` when age is 18 or more and ...
easy○ Not Started
If Statements
Solve
204
If / Else: Larger of TwoTwo numbers a and b are given. Use an if / else statement to print the larger of...
easy○ Not Started
If Statements
Solve
205
If / Else: Equal or NotTwo numbers first and second are given. Print `Equal` when they hold the same va...
easy○ Not Started
If Statements
Solve
206
If / Else: Positive or NotThe variable value holds a number that may be negative or zero. Print `Positive`...
easy○ Not Started
If Statements
Solve
207
If / Else: Strong or Weak PasswordThe variable password holds some text. A password counts as strong when it has a...
easy○ Not Started
If Statements
Solve
208
If / Else: Boolean FlagThe variable isRaining is a boolean, so it is already true or false. Use it dire...
easy○ Not Started
If Statements
Solve
209
If / Else: Not OperatorThe variable isLoggedIn is a boolean. Use the not operator `!` to flip it inside...
easy○ Not Started
If Statements
Solve
210
If / Else: Multiple of 5The variable n holds a whole number. Print `Multiple of 5` when n divides evenly...
easy○ Not Started
If Statements
Solve
211
If / Else with a Block of StatementsThe variable price starts at 120. Orders over 100 get a 20 dollar discount. Writ...
easy○ Not Started
If Statements
Solve
212
If / Else If: Hot or ColdThe variable temperature is in Celsius. Write an if / else if statement with no ...
easy○ Not Started
If Statements
Solve
213
If / Else If: Only the First Match RunsThe variable speed is 95. Write an if / else if statement: print `Way too fast` ...
easy○ Not Started
If Statements
Solve
214
If / Else If / Else: Positive, Negative, or ZeroThe variable n holds a whole number. Use an if / else if / else chain to print `...
easy○ Not Started
If Statements
Solve
215
If / Else If / Else: Compare Two NumbersTwo numbers a and b are given. Use an if / else if / else chain to print exactly...
easy○ Not Started
If Statements
Solve
216
If / Else If / Else: Water StateThe variable celsius holds a temperature. Print the state of water with an if / ...
easy○ Not Started
If Statements
Solve
217
If / Else If / Else: Traffic LightThe variable light holds the color of a traffic light as text: `red`, `yellow` o...
easy○ Not Started
If Statements
Solve
218
If / Else If / Else: Size LabelThe variable size holds a measurement. Print `Small` when size is below 10, `Med...
easy○ Not Started
If Statements
Solve
219
And Operator: In RangeThe variable n holds a number. Print `In range` when n is between 1 and 100 incl...
easy○ Not Started
If Statements
Solve
220
Or Operator: Weekend or WeekdayThe variable day holds the name of a day. Print `Weekend` when day is `Saturday`...
easy○ Not Started
If Statements
Solve
221
And Operator: Both EvenTwo numbers a and b are given. Print `Both even` only when both of them are even...
easy○ Not Started
If Statements
Solve
222
Or Operator: Vowel CheckThe variable letter holds a single lowercase letter. Print `Vowel` when letter i...
easy○ Not Started
If Statements
Solve
223
Loose vs Strict EqualityThe variable text holds the string `"5"` and the variable number holds the numbe...
easy○ Not Started
If Statements
Solve
224
Truthy and Falsy: Empty NameThe variable name holds a string that might be empty. JavaScript treats an empty...
easy○ Not Started
If Statements
Solve
225
Ternary: Even or Odd LabelThe ternary operator `condition ? valueIfTrue : valueIfFalse` is a compact if / ...
easy○ Not Started
If Statements
Solve
226
Nested If: Positive EvenThe variable number is given. Write an if / else that tests whether number is gr...
easy○ Not Started
If Statements
Solve
227
Letter GradeThe variable score holds a test result from 0 to 100. Print the single letter gr...
medium○ Not Started
If Statements
Solve
228
Largest of ThreeThree numbers a, b and c are given. Find the largest using if statements and pri...
medium○ Not Started
If Statements
Solve
229
Leap YearThe variable year is given. A year is a leap year when it is divisible by 4, exc...
medium○ Not Started
If Statements
Solve
230
FizzBuzz for One NumberThe variable n is given. Print `FizzBuzz` when n is divisible by both 3 and 5, `...
medium○ Not Started
If Statements
Solve
231
Quadrant FinderTwo numbers x and y are the coordinates of a point. Print `Quadrant 1` when both...
medium○ Not Started
If Statements
Solve
232
Ticket Price by AgeThe variable age is given. Print the ticket category: `Free` for children under ...
medium○ Not Started
If Statements
Solve
233
Weekday or WeekendThe variable day is a number from 1 to 7 where 1 is Monday and 7 is Sunday. Prin...
medium○ Not Started
If Statements
Solve
234
Shipping Cost by WeightThe variable weight is a package weight in kilograms. Work out the shipping cost...
medium○ Not Started
If Statements
Solve
235
Nested If: Club EntryTwo variables describe a visitor: age (a number) and hasTicket (a boolean). Use ...
medium○ Not Started
If Statements
Solve
236
Login CheckTwo variables hold what a visitor typed: username and password. The only valid a...
medium○ Not Started
If Statements
Solve
237
Discount TiersThe variable total is an order total in whole dollars. Apply a discount with an ...
medium○ Not Started
If Statements
Solve
238
Overtime PayTwo variables are given: hours worked this week and rate in dollars per hour. Th...
medium○ Not Started
If Statements
Solve
239
Middle of ThreeThree different numbers a, b and c are given. Print the middle value, the one th...
medium○ Not Started
If Statements
Solve
240
Season by MonthThe variable month is a number from 1 to 12. Print the season: `Winter` for 12, ...
medium○ Not Started
If Statements
Solve
241
Triangle TypeThree side lengths a, b and c are given. Print `Equilateral` when all three side...
medium○ Not Started
If Statements
Solve
242
BMI CategoryTwo variables are given: weight in kilograms and height in metres. Compute the b...
medium○ Not Started
If Statements
Solve
243
Rock Paper ScissorsTwo variables hold the moves of two players, p1 and p2, each one of `rock`, `pap...
medium○ Not Started
If Statements
Solve
244
Count the Conditions MetThe variable n is given. Count how many of these three facts are true about n: i...
medium○ Not Started
If Statements
Solve
245
Classify Every NumberThe array numbers holds several values. Loop over it with for...of and, for each...
medium○ Not Started
If Statements
Solve
246
Min and Max with TernariesTwo numbers a and b are given. Use the ternary operator twice: once to store the...
medium○ Not Started
If Statements
Solve
247
Days in a MonthTwo variables are given: month (1 to 12) and year. Print `Days: <n>` where n is ...
hard○ Not Started
If Statements
Solve
248
Sort Three NumbersThree numbers are stored in the variables a, b and c (declared with let). Using ...
hard○ Not Started
If Statements
Solve
249
Quadratic RootsThree numbers a, b and c are the coefficients of the equation a·x² + b·x + c = 0...
hard○ Not Started
If Statements
Solve
250
Right Triangle CheckThree side lengths a, b and c are given in no particular order. They form a righ...
hard○ Not Started
If Statements
Solve
251
Progressive TaxThe variable income is a yearly income in dollars. Tax is progressive: the first...
hard○ Not Started
If Statements
Solve
252
Grade with Plus or MinusThe variable score is a test result from 0 to 100. Print the letter grade with a...
hard○ Not Started
If Statements
Solve
253
Parking FeeTwo variables describe a parking stay: hours (may be fractional) and isWeekend (...
hard○ Not Started
If Statements
Solve
254
Triangle ClassifierThe array triangles holds several triples of side lengths. For each triple, prin...
hard○ Not Started
If Statements
Solve
255
Password Strength ReportThe array passwords holds several candidate passwords. For each one print `<pass...
hard○ Not Started
If Statements
Solve
256
Twelve-Hour ClockThe array hours holds several hours in 24-hour time (0 to 23), and minute holds ...
hard○ Not Started
If Statements
Solve