Skip to contentPlayForge
Act IChapter 7
chapter 7

7. Classes and Modules

Organise code into classes and files, ready for page objects.

29m read29m in total

Chapter film (about 7m) is coming.

5 more checkpoints in this chapter

This chapter is part of Standard, which opens at launch. Its lessons are listed below.

  1. JavaScript Classes & OOP
  2. Why This Chapter Is Here: Page Objects Are Just Classes
  3. Modules: require() vs import/export
  4. Build: Your First Page Object
  5. Practice and interview questions: Classes, OOP & Modules
See what a full account includes

Practice

13 exercises attached to this chapter.

  • fixthis, lost in a callback🔒 standard
  • fixA method handed over without its object🔒 standard
  • fixA subclass that skipped its parent🔒 standard
  • mcqJavaScript — quiz bank (10 questions)🔒 standard