I am learning node js, and came across '=>
' several times, however struggle to understand what this means.
Here is an example:
app.post('/add-item', (req, res) => {
// TODO: add an item to be posted
});
Do we actually need this in the above example? A simple explanation would be helpful. Thanks