How to log object in the console with JavaScript

1 Answer

0 votes
let obj = {
  id: 383912,
  name: "Albus Dumbledore",
  academicrank: "Professor"
};
 
console.log(obj);
 
 
     
     
     
/*
run:
     
{
  academicrank: "Professor",
  id: 383912,
  name: "Albus Dumbledore"
}
     
*/

 



answered May 28, 2021 by avibootz
...