Skip to content

Instantly share code, notes, and snippets.

View CraigMorton's full-sized avatar

Craig Morton CraigMorton

View GitHub Profile

JS Record Store

Learning Objectives

  • Implement an OO JS program using the 'new' keyword
  • Practice adding methods to objects
  • Using JS data structures and loops
  • Practice building a TDD program from scratch

Requirements

##Enumerable Lab

Create Bank using enumerable lodash methods.

Bank should be able to:

  • Add an account
  • Find account by name owner name.
  • Find the largest account.
  • Find the total account value.

JS Constructor Lab

The task is to test drive the beginnings of an adventure game.

Tasks:

A.

  • Create a constructor to create a Hero character.
    • A Hero has a name
  • A Hero has health