JavaScript-Creation of Objects
Creation of objects in Javascript:- there are three ways of creating of object in JavaScript.....these are
Direct method
let obj={id: 101, name: "Pushpdeep", Batch: 2024}
console.log(obj)
here id, name, and batch are keys and 101, Pushpdeep and 2...
pushpdeep.hashnode.dev1 min read