Duration
5 min
Access
Free
Transcript
Available

We'll create a new Map() data structure to store Notes that are passed into our API in memory. With that in place we'll create a model called Note.js that has the responsibility for saving and manipulating those notes and saving them back into our data store. After we hook up the our routes to call into our Note model and confirm that it all works.

To power our API we use some modern JavaScript syntax: