Learn JavaScript
Assessment Object
8.2
Assessment

Create Object - Add and Show property

Follow the steps given below to write a program:

Key Value
studentName Renu Sen
age 21
rollNumber 34
  1. Create an object student that stores the properties given in the table above.

  2. Read all the values stored in the object and show them using console.log().

  3. Once you have shown all the values in the console, add the value 1234 to the studentId key.

  4. Finally show the student object.