What differentiates an arrow function from a function, say "classica"? [duplicate]

1

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

modules.exports.addNote = function(){}

Would be replaced by:

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

What would be the difference from one to another and why use one and not another?

    
asked by anonymous 17.05.2017 / 08:01

0 answers