Answers for "what are objects used for in javascript"

1

objects in javascript

var object = {'key':'value','the value can be anything',[1,null,'Dr.Hippo']};
Posted by: Guest on February-21-2020
0

objects in javascript

var student = {                 // object name
firstName:"Jane",           // list of properties and values
lastName:"Doe",
age:18,
height:170,
fullName : function() {     // object function
   return this.firstName + " " + this.lastName;
}
};
Posted by: Guest on August-05-2021

Code answers related to "what are objects used for in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language