I read nodejs 5.4 docs, where I found a => symbol in an example and a new way to define callback function. I don't know why => is used ? is it really a new way to define callbacks ? This is the example from node 5.4 docs.
const spawn = require('child_process').spawn;
const ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', (data) => {
console.log(`stdout: ${data}`);
});
ls.stderr.on('data',(data) => {
console.log(`stdout: ${data}`);
});
ls.on('close',(code) => {
console.log(`child process exited with code ${code}`);
});