📚 › JavaScript: make pages do things
10. Objects
इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।
An object groups related values under named keys: {name: "Nadia", marks: 88}. Read a value with a dot, as student.name, or with brackets, as student["name"].
Objects describe one thing; arrays hold many things of one kind.
उदाहरण देखें
const student = {name: "Nadia", marks: 88};
console.log(student.name, student.marks);
✍️ अब आपकी बारी
Create an object with country set to Bangladesh and print the country.