About Express' req properties

So I’m on the Basic Node and Express section of Back End Development and APIs. I just saw that you need to define a req.time “key” as the current Date, but req.time doesn’t appear in Express’ references as a property (nor a method). Does this mean that you can create keys for requests with arbitratry names (eg. req.myKey)to store info as if they were varibles, for referencing later within the app method? Or how does it work exactly?

Thanks in advance

It’s this one https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/chain-middleware-to-create-a-time-server

I had no problem with the tests passing, I was just curious. Although I think that I realised req is simply an object so you can indeed add new properties to it?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.