Learning objectives
- Variable names must match the property names
- You can assign new variable names using colon (:)
- You can set default values
- Nested objects require nested destructuring
- Use rest operator (...) to collect remaining properties
- Order doesn't matter in object destructuring
arrow functions-
- arrow function provide the more readability to the code
- It doesnt required the explicit retirn statement for the single line function
- we dont neeed to call the function before the declaration
- the destruction of the object need the {} during use of the function
- It is same like the anonyms function