Code Challenge



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.

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?