What differentiates an Arrow Function from a function, say, "classica"?

Asked

Viewed 211 times

1

I started a nodejs course and the instructor said the following code:

modules.exports.addNote = function(){}

Would be replaced by:

modules.exports.addNote = () => {}

What would be the difference between one and the other and why use one and not another?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.