Answers for "Build JavaScript Objects"

4

Build JavaScript Objects

var myDog = {
  name: "gozi",
  legs: 4,
  tails: 1,
  friends: ["Ted", "Fred"]
};
Posted by: Guest on July-18-2020
10

creating an object javascript

let obj = {
// fields
  name:"value",
  num: 123,
//methods
  foo: function(){}
  
}
Posted by: Guest on January-06-2020
1

create object javascript

let voleur = {
     action     : () =>console.log ('Coup de dague fatal') ,
     crie      : ('pour la horde!!!!') ,
     coupfatal :()=> console.log ('coup dans le dos')

}

voleur.action() ;
voleur.coupfatal() ;
console.log(voleur.crie) ;
Posted by: Guest on March-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language