🎓 A1Learner
🔍
0 of 50 lessons completed

The Notes App We Will Build

The notes app is the project this course builds. It lists notes, adds new ones, and edits and deletes them.

One note

A note is a title and a done flag.

const note = { title: 'Buy milk', done: false };
console.log(note.title);

Three notes

The app starts with three notes.

const notes = ['Buy milk', 'Ship MERN', 'Read a book'];
console.log(notes.length);

Example

const features = ['List notes', 'Add a note', 'Edit a note', 'Delete a note'];

for (const feature of features) {
  console.log(feature);
}

Key points

  • A note has a title and a done flag.
  • The done flag is true when the note is finished.
  • The app shows the list of notes on one page.
  • A form adds a new note to the list.
  • Each note has buttons to edit it or delete it.

In this example, features is an array of four strings. Each string names one thing the app can do. The loop prints each feature on its own line. The output lists the four features of the notes app.

Note

The app grows one piece at a time. Each lesson adds the next piece.

Try it Yourself

Edit the code, then press Run.

Running is simulated

Exercise

What two fields does a note have?