codex-lv2-may-2025

Level Navigation: 0 1 2 3 4 Current Level: 5


Lesson: Bonus Challenge Exercises

🎯 Objective

Complete advanced challenges involving player scoring, weather data updates, and robot movement simulation.


Instructions

Complete the following challenges to apply all your skills so far.


βœ… Challenge 1: Track a Player’s Score

const player = {
    "name": "Alex",
    "score": 0,
    "level": 1
};

// TODO: Increase score by 10.
// TODO: Increase level by 1.
// TODO: Print name, score, and level.

βœ… Challenge 2: Update Weather Data

const weather = {
    "city": "Taipei",
    "temperature": 30,
    "isRaining": false
};

// TODO: Increase temperature by 5.
// TODO: Change isRaining to true.
// TODO: Print city, temperature, isRaining.

βœ… Challenge 3: Move a Robot on a Grid

const robot = {
    "id": "R2D2",
    "x": 0,
    "y": 0,
    "direction": "north"
};

// TODO: Move y by +10.
// TODO: Move x by +5.
// TODO: Change direction to "east".
// TODO: Print id, x, y, direction.

βœ… ACP

git add script.js
git commit -m "Step 5 completed - POJO Challenge Exercises"
git push

βœ… Summary

You applied:


βœ… Final Review Checklist

At the end of this journey, confirm that:




Level Navigation: 0 1 2 3 4 Current Level: 5