Computer Science, asked by thiruvalluvar, 9 days ago

Write the structure of OBJECT based on the given details:
1) Object name is student,
2) Attributes of student objects are Roll no, Name, Age,
3) Methods belongs to student objects are studying, Attendance, write exam.
Topic:- DBMS

Only correct answers please. ​

Answers

Answered by sayamkeshri2008
1

The object can be formed in many language but here language is not specified so I am using C.

let student = {

     RollNo: 39,

     Name: "Harry",

     Age: "15",

     Attendance: () => {console.log("Present Sir");},

     WriteExam: () => {console.log("exam")}

}

Similar questions