Lesson

Creates a new Lesson object

Constructor

new Lesson(parent, index) → {Lesson}

Parameters:
NameTypeDescription
parentSectionThe parent Section this lesson belongs to
indexnumberThe index of this lesson within the section
Returns:
- Lesson object created
Type: 
Lesson
Example
const lesson = new Lesson(section, 0)

Classes

Lesson

Methods

get() → {object}

Get lesson data from its parent Section
Returns:
- Lesson data
Type: 
object
Example
lesson.get() // returns the lesson object