Learn
Express Middleware Code Challenges
Code Challenge

Code Challenge

Instructions

1.

This server currently sends the same response for ‘/whatis/apple’, ‘/whatis/orange’, and ‘/whatis/banana’. Write a function to send the same response, and DRY the code by using that function as a callback for all three routes.

Folder Icon

Sign up to start coding

Already have an account?