The Timekeeper

Easy+15 XP

Mission Briefing

The archaic dwarven calendar uses numbered days, but modern systems require text. We need a translator mechanism the Guild can rely on.

The Concept: Mapping Data

Switch statements are incredibly useful for mapping numerical codes directly to readable strings or specific configuration states. Don't forget your break statements or return early!

The Objective

Your function receives a number dayNum. Map it to a string using a switch statement:

  • 1: "Monday"
  • 2: "Tuesday"
  • 3: "Wednesday"
  • Anything else: "Unknown"

Constraints

    FundamentalsSwitch
    JavaScript
    Loading...
    3 Hidden

    Input Arguments

    dayNum1

    Expected Output

    Monday

    Click RUN to test your solution