Make a base SuperHero
class. Give it some properties, and actions (methods) that change those properties.
- Write a test for what it should do in tests.js.
- Open index.html to run the tests.
- Define the class in super_hero.js, and make the tests pass.
- Repeat from step 1.
Make 2+ SuperHero
subclasses that have two or special properties and actions.
Make at least one of the methods interact with another SuperHero
, such as attack()
or giveMotivationalSpeech()
.