Brand new to javascript. Used to strong typed Object oriented languages like Java and C#.
I am looking over some existing express javascript code that handles a request body.
const username = req.body.username
From what I understand username is a field passed in json. How is there a field on body that is called username already?
I was expected to see something like this...
const username = req.body['username']
Can anyone clarify what is going on here?