Https://www.codecademy.com/courses/learn-express/lessons/middleware/exercises/route-level-app-use-single-path

https://www.codecademy.com/courses/learn-express/lessons/middleware/exercises/route-level-app-use-single-path
please can any one help me on the task 3 I had stucked.So this is my code :

if (!jellybeanBag[beanName]) {
   console.log('Response Sent');
   req.bean = 'Bean';
  req.beanName = beanName
   
    return res.status(404).send(`${req.bean} with that ${beanName} does not exist`);
    next();

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.