reading-notes

JavaScript Object Basics:

How would you describe an object to a non-technical friend you grew up with?

    const dog = {
    name: 'Spot',
    age: 2,
    color: 'white with black spots',
    humanAge: function (){
        console.log(`${this.name} is ${this.age*7} in human years`);
    }
    }

Introduction to the DOM:

What is the DOM?