Start.dev
CoursesChallenges
Log inSign up

Conditionals in JavaScript

Challenge set

Conditionals in JavaScript

Practice JavaScript conditionals through six focused Challenges covering comparisons, branching rules, combined checks, and real decision logic.

JavaScript logoJavaScript

Work through the collection

Challenges in This Set

  1. 01
    JavaScript logo

    JavaScript

    Battery Warning

    Use a JavaScript if statement to detect a low battery level and print a clear warning when the charge drops below 20 percent.

    Experience points50XPBeginner
  2. 02
    JavaScript logo

    JavaScript

    Ticket Booth

    Use JavaScript if and else branches to choose the correct ticket label for a child or standard admission based on the provided age.

    Experience points50XPBeginner
  3. 03
    JavaScript logo

    JavaScript

    Delivery Speed

    Build a JavaScript else if chain that classifies delivery speed as Express, Priority, or Standard from the provided number of days.

    Experience points50XPBeginner
  4. 04
    JavaScript logo

    JavaScript

    Free Shipping

    Combine JavaScript comparison and logical operators to decide when an order qualifies for free shipping based on total and membership.

    Experience points50XPBeginner
  5. 05
    JavaScript logo

    JavaScript

    Secure Login

    Order JavaScript conditional rules so a locked account takes priority over a correct password and produces the proper login message.

    Experience points50XPBeginner
  6. 06
    JavaScript logo

    JavaScript

    Mission Clearance

    Combine role, account status, two factor security, and clearance level in JavaScript to select the correct mission access result.

    Experience points50XPBeginner
Start.dev

Learn how to code by building real software.

© 2026 Start.devRoadmapRanksBlogInstructorsFAQContact usTerms of ServicePrivacy PolicyStatus