Check out a free preview of the full Enterprise Architecture Patterns course
The "Adding Methods Exercise" Lesson is part of the full, Enterprise Architecture Patterns course featured in this preview video. Here's what you'd learn in this lesson:
Students are instructed to create a ProjectStore class with a constructor, state property, and the methods getState and select. The class should be instantiated with the initialState object and the select method should be called to retrieve the projects collection.
Transcript from the "Adding Methods Exercise" Lesson
[00:00:00]
>> What I would like everybody to do is to create a project store class. And a state property to the class, add a constructor that accepts the state parameter. And it gets state method, a select method and then instantiate the project store class with the initial state object.
[00:00:21]
Call select on the class to get the project's collection.
Learn Straight from the Experts Who Shape the Modern Web
- In-depth Courses
- Industry Leading Experts
- Learning Paths
- Live Interactive Workshops