A course coordinator needs one clear record for a learner. You will build that record from key-value pairs, then update a value when the student improves.
In an object, the key names a fact and the value stores that fact. For example, course: "JavaScript" pairs the key course with the string value "JavaScript".
The interactive walkthrough used a producer profile. This exercise uses a different perspective: a student course record.
An object groups facts under named keys; dot notation updates one fact:
const exhibit = { title: "Fossils", visitors: 6 };
exhibit.visitors = 7;
console.log(exhibit.title, exhibit.visitors); // Fossils 7
student object with name: "Riley", course: "JavaScript", and score: 88.student.score to 92 with dot notation.student.status with the value "enrolled".Riley | JavaScript | 92 | enrolled on its own Console line.Run the script. You should see one line in the Console containing Riley's updated record. The next lesson builds on the same key-value idea with object methods.
Write each key, a colon, and its value: name: "Riley".
Use student.score = 92 to replace the original score.