How do you create an object in JavaScript?

Since JavaScript is essentially an object-oriented scripting language, it supports and encourages the usage of objects while developing web applications.

const student = {

    name: ‘John’,

    age: 17

}


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *