I am trying to deploy a simple app on heroku. App is using Express js.
I am facing problem when I use let
keyword in the code. The heroku app page shows the application error image. When I convert let to var the same page works.
I am unable to understand that. let keyword works fine on my desktop but not on heroku.
Please help if there is any solution.
This code is not working due to let
app.post('/adduser',(req,res) => {
let userdata = req.body.data;
});