Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.08 KB

personFactory

Goal:

  • To explore the Factory Pattern with JavaScript
  • To learn about using Prototypes and various Object() methods such as:
    • Object.create()
    • Object.freeze()
    • Object.seal() (perhaps)
  • How closures are helpful for protecting unexpected changes to an object's properties
  • To leverage BDD/TDD for sanity and expediency I was tinkering around with a pattern I had not used in a while and it occurred to me that I could make the most of this exercise if I added some tests to rapidly verify my assertions!

Instructions:

  1. Clone this repo
  2. Install using your preferred tool (yarn, npm, etc.)
  3. Run tests with yarn test.

Documentation of tools used:

GitHub Actions:

A push or a pull request to main triggers GitHub Actions:

  1. A Node.js CI process that ensures yarn test passes.