Node.js curriculum
Node.js practice
Short exercises. Try them first, open the hint if you are stuck, and the solution last.
Exercise 1
Parse a config
A Node app often reads JSON config. Parse the string and print the port plus 1.
Your solutionJavaScriptExercise 2
Build a response
Write respond(status, data) returning an object with status and a JSON string body.
Your solutionJavaScriptExercise 3
Route lookup
Given a routes object, write handle(url) returning the matching text, or Not found.
Your solutionJavaScript