how to create a object in javascript

JavaScript
var a = {
name: "aakash",
  age:30
}var car = {type:"Fiat", model:"500", color:"white"};
 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) ;
let obj = {
// fields
  name:"value",
  num: 123,
//methods
  foo: function(){}
  
}
Source

Also in JavaScript: