About 482,000 results
Open links in new tab
  1. JavaScript Objects - W3Schools

    Creating a JavaScript Object. These examples create a JavaScript object with 4 properties:

  2. Object.create() - JavaScript | MDN - MDN Web Docs

    Mar 6, 2025 · The Object.create() static method creates a new object, using an existing object as the prototype of the newly created object.

  3. Creating objects in JavaScript - GeeksforGeeks

    Aug 13, 2024 · Using object literals to create objects in JavaScript involves defining an object directly with key-value pairs inside curly braces {}. This method is concise and straightforward, …

  4. How to Create Objects in JavaScript - freeCodeCamp.org

    May 10, 2024 · In JavaScript, you can create objects using object literals. The syntax for creating an object literal is as follows: objectName: This is the name you assign to your object variable. …

  5. How to "properly" create a custom object in JavaScript?

    Oct 20, 2009 · Let's start with the prototype way. This is the most JavaScript-native you can get: there is a minimum of overhead code and instanceof will work with instances of this kind of …

  6. How to Create Objects in JavaScript: An Expert Guide

    Aug 13, 2024 · In this comprehensive guide, you‘ll learn five primary ways to create objects in JavaScript: Each approach serves different use cases for object creation. By understanding …

  7. 4 Ways to Create an Object in JavaScript (with Examples)

    When you create a JavaScript object, you need to define its name, properties, and methods. You can make a JavaScript object in four different ways: Let’s see them one by one below. 1. …

  8. Creating and Manipulating Objects in JavaScript - Tutorial Republic

    In this tutorial you will learn how to create and use objects in JavaScript. What is an Object? JavaScript is an object-based language and in JavaScript almost everything is an object or …

  9. JavaScript Objects: Create Objects, Access Properties & Methods

    In JavaScript, an object can be created in two ways: 1) using Object Literal/Initializer Syntax 2) using the Object() Constructor function with the new keyword. Objects created using any of …

  10. Javascript Object.create() - Programiz

    The Object.create() method creates a new object using the prototype of the given object. name: "Lisa", age: 24, marks: 78.9, display() { console.log("Name:", this.name); // Output: Name: …

  11. Some results have been removed
Refresh