return Math.floor((Math.random() * MAX));
should be return Math.floor(Math.random() * MAX);
.
content: request.body.body
should be body: request.body.body,
<%= entry.body %>
should be <%= entry.content %>
.
This paragraph talks about fs.exists
but it should talk about fs.stat
as show in Listing 4.5.
Looks like you didnbt find a static file.
should be
Looks like you didn't find a static file.
(note the change in apostrophe).
The second <link>
tag has an extra indent that is unneeded.
<%=: career | capitalize %>
no longer works in newer versions of EJS and should be <%= career.toUpperCase() %>
.
This listing doesn't stand on its own. Express app won't work until you finish at least all of the code up until Listing 8.28, on page 142.
The titlebar icon shows the Atom logo where it should be the Sublime Text logo.