Exercise 3 · Chapter: ObjectsRequired+50 XP
Fix the Object
This program should print the student's name, but it uses the wrong key and prints undefined. Fix it!
Expected output:
Name: Alex
Need a hint?
3 available · costs 5 XP each
javascript
let student = { name: "Alex", age: 10, grade: "5th" };
console.log("Name:", student.nombre);
Output
Run your code to see the output here.