Level Navigation: 0 | 1 | 2 | 3 | 4 | Current Level: 5 |
Complete advanced challenges involving player scoring, weather data updates, and robot movement simulation.
Complete the following challenges to apply all your skills so far.
const player = {
"name": "Alex",
"score": 0,
"level": 1
};
// TODO: Increase score by 10.
// TODO: Increase level by 1.
// TODO: Print name, score, and level.
const weather = {
"city": "Taipei",
"temperature": 30,
"isRaining": false
};
// TODO: Increase temperature by 5.
// TODO: Change isRaining to true.
// TODO: Print city, temperature, isRaining.
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.
git add script.js
git commit -m "Step 5 completed - POJO Challenge Exercises"
git push
You applied:
At the end of this journey, confirm that:
script.js
.Level Navigation: 0 | 1 | 2 | 3 | 4 | Current Level: 5 |