Skip to content
exercise
321nosrep
321nosrep

A boilerplate for a freeCodeCamp project.

2comments
CarolMurphy
CarolMurphy
10 months ago

78 let myDate = req.body.date == '' ? undefined : Date.parse(req.body.date)

Doesn't the story state that if date equals an empty string, today's date should be the value returned? It looks like this returns undefined instead.

(My code isn't passing either, but it updates the db properly and doesn't crash until I try to pass test #4.......)