Skip to Content
Express Routes Code Challenges
Code Challenge

Code Challenge



Write a route to handle DELETE requests to /puddings/:flavor. It should delete the correct pudding and send a 204 response if the pudding name exists and send a 404 response if it does not.

You can use the helper functions findPuddingIndex to find the index of the pudding by flavor and deletePuddingAtIndex to delete a pudding from the puddingFlavors array by index.

Folder Icon

Sign up to start coding

Already have an account?