Skip to content

Commit 64dd171

Browse files
authored
Update part3a.md
id to string from the notes array, to make the notes.find(note => note.id === id) in app.get('/api/notes/:id') work properly without string to int conversion
1 parent b2ee4f3 commit 64dd171

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/3/en/part3a.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ const http = require('http')
187187
// highlight-start
188188
let notes = [
189189
{
190-
id: 1,
190+
id: "1",
191191
content: "HTML is easy",
192192
important: true
193193
},
194194
{
195-
id: 2,
195+
id: "2",
196196
content: "Browser can execute only JavaScript",
197197
important: false
198198
},
199199
{
200-
id: 3,
200+
id: "3",
201201
content: "GET and POST are the most important methods of HTTP protocol",
202202
important: true
203203
}

0 commit comments

Comments
 (0)