When I run the FCC test and open up the browser console, I open up the network tab so I can see the http requests being made for the test. This test:
You can POST a URL to /api/shorturl and get a JSON response with original_url and short_url properties. Here’s an example: { original_url : 'https://freeCodeCamp.org', short_url : 1}
Your code works. But “working” is not good enough. It has to work the way the requirements want. True, the description does not exactly what the required POST body should be, but we can figure it out with a little detective work. Maybe that is on purpose - trust me, it happens on the job all the time.
Woah, awesome kevin! Your response was super helpful.
At first I tried using the developer console to watch what was happening “behind the scenes” but I was using my own post bodies, so I couldn’t detect anything weird happening.
Your answer helped me to find the error, and after changing the code a little,