GithubHelp home page GithubHelp logo

shawncodes / object-oriented-js-discussion-question-nyc-web-040218 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahamedali95/object-oriented-js-discussion-question-nyc-web-040218

0.0 1.0 0.0 4 KB

JavaScript 50.58% HTML 49.42%

object-oriented-js-discussion-question-nyc-web-040218's Introduction

Unicorn Alley

Unicorn Alley

Thousands of years ago, unicorns roamed the forests on all continents. In modern times, however, they've been driven from their verdant woodlands, taking refuge in an unfamiliar territory: New York City. Forced to adapt, they've gained new skills and abilities. This is their story..

Your task is to help these unicorns by adapting their old, functional Javascript ways to a new, shiny, object-oriented methodology.

Unicorns have the following functions:

  • attack
  • defend
  • heal
  • breakdance
  • eatCronut

Choose one person to clone down this repo and then open up the index.html file provided. Take a look at the func-index.js file and discuss how it works. As a table, take the functions provided in func-index.js and convert them to an object-oriented alternative in the oo-index.js file. When complete, in your html file, switch from func-index.js to oo-index.js in the script tags to see if you were successful in your task.

object-oriented-js-discussion-question-nyc-web-040218's People

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.