how to create a object in javascript

JavaScript
let obj = {
// fields
  name:"value",
  num: 123,
//methods
  foo: function(){}
  
}var a = {
name: "aakash",
  age:30
}let bike = {   name: 'SuperSport',    maker:'Ducati',    start: function() {       console.log('Starting the engine...');   }};bike.start();   //Output: Starting the engine.../* Adding method stop() later to the object */bike.stop = function() {    console.log('Applying Brake...');  }bike.stop();    //Output: Applying Brake...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) ;
var about = {
  name:"lanitoman",
  age:1023,
  isHeProgrammer:true
}var about = {
  name:"lanitoman",
  age:1023,
  isHeProgrammer:true
}
Source

Also in JavaScript: