In the course, during the part 3, section (a), "Fetching a single resource" - the routes that describe getting and deleting resources of notes
app.get('/api/notes/:id', (request, response) => {
const id = request.params.id
const note = notes.find(note => note.id === id)
response.json(note)
})
This is flawed because the id is a string, but the id from the notes is a number. Thus, the code snippets have to be changed to explicitly make this cast of the parameter id:
const id = Number(request.params.id)