Skip to content

JavaScript-III - #1

Open
ThorbenBender wants to merge 3 commits into
masterfrom
Thorben-Bender
Open

ThorbenBender wants to merge 3 commits into
masterfrom
Thorben-Bender

Conversation

@ThorbenBender

Copy link
Copy Markdown
Owner

No description provided.

@ThorbenBender
ThorbenBender requested a review from samarv January 23, 2019 15:52

@samarv samarv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Project Objective

  • Complete this assignment.
  • Complete 'prototype.js' assignment

Stretch

  • Create Villain and Hero constructor functions that inherit from the Humanoid constructor function.
  • Give the Hero and Villains different methods that could be used to remove health points from objects which could result in destruction if health gets to 0 or drops below 0;
  • Create two new objects, one a villain and one a hero and fight it out with methods!

Module Objective

  • Explain the four principles of the 'this' keyword and demonstrate each explanation with an example of their uses
  • Describe, and use prototypes, constructor functions the new keyword, and pseudo-classical inheritance to build a small object based video game

Conclusion

Thorben, Your git commits are NOT regular. Get in the habit of commit often. Your code is clean and precise. You are curiosity is infectious. Keep learning. Keep stretching.

Lemme know if you have any questions.

Comment thread assignments/this.js
* 2.
* 3.
* 4.
* 1. when use this in the global element it points at the root element

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it points to window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants