upon reading the latest NodeJS docs I encountered a new way of declaring a function:
fs.unlink('/tmp/hello', (err) => {
if (err) throw err;
console.log('successfully deleted /tmp/hello');
});
Source: https://nodejs.org/api/fs.html#fs_file_system
Now I want to know how this (var) => { <functon-content> }
type declaration is called, so that I can research more on it.
I have not yet found anything online regarding this topic. :(