Working with JavaScript Classes

hello="world"; return hello;

Run the following block, it should return an object with four properties, name, height, weight, and the number of eyes it has.

class Animal { constructor(name, height, weight, eyes){ this.name = name; this.height = height; this.weight = weight; this.eyes = eyes; } } return new Animal("cat", 1.3, 14, 2);

All Pages in Basic Programing with Javascript

    Basic Programing with Javascript

    Welcome to the OakFrame Interactive Basic Programming with Javascript course. This course is provided through an...

    Working with JavaScript Classes

    hello="world"; return hello; Run the following block, it should return an object with four properties, name, height,...

Explore OakFrame

    Basic Programing with Javascript

    Welcome to the OakFrame Interactive Basic Programming with Javascript course. This course is provided through an...

    Games

    Play games in your browser for free, handcrafted by us here at OakFrame!

    Oak Studio Documentation

    Simple to Embed and Integrate We designed OakFrame to be easy to extend in order to provide further integration...

    Design Systems

    A complete, reliable, flexible, and cost-effective infrastructure is a fundamental requirement in modern companies....

    About OakFrame

    OakFrame is a design, development, and research firm located in Dallas, Texas, developing experiences for audiences...