Giter Site home page Giter Site logo

dmitriymalayev / prototypal-oo-js-object-oriented-object-methods-lab-onl01-seng-pt-052620 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/prototypal-oo-js-object-oriented-object-methods-lab-onl01-seng-pt-052620

0.0 0.0 0.0 142 KB

License: Other

HTML 25.35% JavaScript 74.65%

prototypal-oo-js-object-oriented-object-methods-lab-onl01-seng-pt-052620's Introduction

Object Methods in JS Lab

Objectives

  • Create constructor functions
  • Add methods to a constructor function
  • Create objects from a constructor function

Instructions

Scuber, in an effort to gain much needed local influence, has begun adding some powerful board members to its organization. It expects to add more (similar) board members in the future, so it needs you to declare a constructor function so that it can crank them out.

In index.js, write a constructor function called BoardMember that sets the following properties: name, homeState, and training.

Add following methods to the class:

  • veto — returns No, I must disagree

  • approve — returns You can do that!

  • doCharity — returns I like to help people.

  • releasePressStatement — returns You will see great things from Scuber.

  • sayHi — returns "Hi, my name is <name>. I am from <homestate>, and I was trained in <training>.

prototypal-oo-js-object-oriented-object-methods-lab-onl01-seng-pt-052620's People

Contributors

jeffkatzy avatar maxwellbenton avatar gj avatar drakeltheryuujin avatar cernanb avatar dmitriymalayev avatar jmburges avatar sgharms avatar dependabot[bot] 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.