Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Marko Delgadillo
4,524 PointsWhy was the previously submitted name still displayed in the console without having to submit it again?
After requiring body-parser and creating the app.use middleware, I simply went back to the web app after saving my app.js and refreshed. Once I refreshed, the name I had previously submitted displayed in the console.
I didn't have to submit the name again like in the video in order to have it displayed via console.dir().
Can anyone tell me why that is? How did the previously submitted name get stored? and how can I have that value cleared after submission?

Marko Delgadillo
4,524 PointsThank you, MIchael for responding. A later video answered my question :)
1 Answer

Marko Delgadillo
4,524 PointsUPDATE: A later video answered my question. When refreshing the browser, it keeps using the post request from before. Only when clicking on the browser URL and hitting Enter will the GET request be triggered again, in which case clearing the req.body.
The Video with this explanation was on Express Basics - The Response Object . :)
Michael Hulet
47,913 PointsMichael Hulet
47,913 PointsWhich browser/OS combo are you using? Also, can you link the video that you're following? It looks like it didn't get associated properly with the question