codex-lv2-may-2025

Unit Overview: Plain Old JavaScript Objects (POJOs)

🧭 Objective

In this unit, students will learn about Plain Old JavaScript Objects (POJOs) - a fundamental concept in JavaScript programming. Students will practice creating, reading, and updating object properties through hands-on exercises and challenges.


🎯 Learning Goals


📚 Lesson List

  1. Install Node.js (Prerequisite)
    Install Node.js on your computer to run JavaScript files and complete the POJO exercises.

  2. Setup and Look & Guess (Setup & Introduction)
    Set up the project environment and complete the initial “Look and Guess” activity to understand basic POJO structure.

  3. What is a POJO? - 4 Exercises (Foundation)
    Learn to identify keys and values, create your own POJOs, explain object representations, and fix syntax errors.

  4. Read and Update POJO Properties (Core Skills)
    Practice reading object properties and updating them with new values through guided exercises.

  5. Practice Challenge (Application)
    Apply your skills by creating custom POJOs and performing read/update operations on books, pets, and sprites.

  6. Bonus Challenge Exercises (Advanced)
    Complete advanced challenges involving player scoring, weather data updates, and robot movement simulation.


✅ Project Outcome

By the end of this unit, students will:


🛠️ Prerequisites