construct an object in javascript code example
Example 1: javascript construct new object
person = new Object();
Example 2: javascript object
let names = {
name1: 'What ever you want to put'
}
Example 3: 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) ;