Web Technology I2080.25 marksJavaScript user defined objects
Create a user-defined object Student in JavaScript. The object should have attributes with values as Name= "Ram", Age=20,DOB=2003/02/03 respectively. Now display the result retrieving the attributes.
Create a user-defined object Student in JavaScript. The object should have attributes with values as Name= "Ram", Age=20,DOB=2003/02/03 respectively. Now display the result retrieving the attributes. [5]
--- --- Step Description ------------------- Object Creation A user-defined object Student is created using object literal notation { } Attributes Name, Age, and DOB are the properties (attributes) of the object with their respective values Dot Notation Student.Name, Student.Age, Student.DOB are ...