Constructor
new Lesson(parent, index) → {Lesson}
Parameters:
| Name | Type | Description |
|---|---|---|
parent | Section | The parent Section this lesson belongs to |
index | number | The index of this lesson within the section |
Returns:
- Lesson object created
- Type:
- Lesson
Example
const lesson = new Lesson(section, 0)Classes
Methods
get() → {object}
Get lesson data from its parent Section
Returns:
- Lesson data
- Type:
- object
Example
lesson.get() // returns the lesson object