Node.js destructure undefined
To simplify our code, Node.js offer Destructure syntax to de-strcuture the objects with properities.
Meanwhile, ES6 offer Defautl Function Paramerters in case the parm not provided.
const greet = (user='Fabio') =>{
console.log('Hello', user);
}
...
fabiochen.hashnode.dev1 min read