Giter VIP home page Giter VIP logo

js-classes-lab's Introduction

JS-Classes-lab

Lab - Classes

Easy

  • These are purposefully ambiguous
    • On your own, come up with attributes and methods that make sense
  • As you go down the list, some classes might be able to inherit from previous classes you've already written
  1. Create a class for a person
  2. Create a class for a pet
  3. Create a class for a boat
  4. Create a class for an artist
  5. Create a class for a robot
  6. Create a class for a computer
  7. Create a class for a dog
  8. Create a class for a painter
  9. Create a class for a car
  10. Create a class for a laptop
  11. Create a class for a humvee
  12. Create a class for a smart phone
  13. Create a class for a baby
  14. Create a class for a fire truck
  15. Create a class for a bird

Harder

  1. Create a single factory object to generate robots
    • The factory should have an array of robots that it has generated
    • A robot should have a serial number, based on what index it is in the factory's robots array
  2. Create a class for computer factories
    • A factory should have a name attribute which is set by passing a parameter into the constructor for the factory
    • A factory should have an array of computers that it has generated
    • A computer should have a serial number attribute, based on what index it is in the factory's computers array
    • A computer should have a maker name attribute, which the factory sets during generation

js-classes-lab's People

Contributors

jimbojones1 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.