neopragma / js-object-examples

JavaScript Object Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Objects

1. Create an Object Using an Object Literal

(1) Pluralsight Videos

    Session 2: JavaScript Fundamentals Part 2 (Week 11 - 8/9/2022)

        Course: JavaScript Objects, Prototypes, and Classes (Jim Cooper)

            Module: JavaScript Object Properties

                Clip: Modifying Properties with Property Descriptors
                Clip: Using the Writable Attribute
                Clip: Using the Enumerable Attribute
                Clip: Using the Configurable Attribute

'Property' and 'attribute' are synonymous.

(2) Walk through examples in objectproperties.js.

2. Create an Object Using a Function

(1) Walk through examples in objectfromfunction.js.

(2) Pluralsight Videos

    Session 2: JavaScript Fundamentals Part 2 (Week 11 - 8/9/2022)

        Course: JavaScript Objects, Prototypes, and Classes (Jim Cooper)

            Module: JavaScript Prototypes and Interfaces

                Clip: What is a Prototype?
                Clip: Instance vs. Prototype Properties
                Clip: A Graphical Overview of Prototypes

3. Inheritance and Object Prototypes

(1) Walk through examples in objectprototype.js

(2) Pluralsight Videos

Session 2: JavaScript Fundamentals Part 2 (Week 11 - 8/9/2022)

Course: JavaScript Objects, Prototypes, and Classes (Jim Cooper)

    Module: JavaScript Prototypes and Interfaces

        Clip: Multiple Levels of Inheritance
        Clip: Changing a Function's Prototype
        Clip: Creating Your Own Prototypal Inheritance Chain

4. Changing a Function Prototype vs. Changing an Instance

(1) Pluralsight Videos

    Session 2: JavaScript Fundamentals Part 2 (Week 11 - 8/9/2022)

        Course: JavaScript Objects, Prototypes, and Classes (Jim Cooper)

            Module: JavaScript Prototypes and Interfaces

                Clip: Instance vs. Prototype Properties

5. JavaScript Classes

(1) Walk through javascriptclass.js

(2) Walk through greeter.js and classygreeter.js

Running the examples

You can run the JavaScript files from a command line using node, like this:

  • node objectproperties.js
  • node objectfromfunction.js
  • node objectprototype.js
  • node javascriptclass.js
  • node greeter.js Samantha english
  • node greeter.js 賢司 japanese
  • node greeter.js Eduardo spanish
  • node classygreeter.js Samantha english
  • node classygreeter.js 賢司 japanese
  • node classygreeter.js Eduardo spanish

About

JavaScript Object Examples

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 100.0%