I have an endpoint in my node app and I am doing the following...
app.put('/api/authentication', function(req,res){
console.log(global.ff); //undefined
console.log(req.ff); //undefined
console.log(blah); //throws error
});
I don't understand why the first two give me 'undefined'. They should throw an error as I have never once declared them. But it's as if node.js has magically declared them and that is why they do not throw an error like the last one...Can someone explain?