Object Destruction
The two most used data structures in JavaScript are Object and Array.
Objects allow us to create a single entity that stores data items by key.
Arrays allow us to gather data items into an ordered list.
Although, when we pass those to a function, it may need not an object/array as a whole. It may need individual pieces.
???? Join Discord - https://discord.gg/ptXuVCtXxM
▬ ???? Resources ▬▬▬▬▬▬▬▬▬▬
⭐️ Docs: https://javascript.info/destructuring-assignment
⭐️ GitHub repo with explanation written https://github.com/mohammedelzanaty/my-web-notes
▬ ???? Contact Me ▬▬▬▬▬▬▬▬▬▬
???? Become a Patron: Show support & get perks!
https://www.patreon.com/mohammedelzanaty
☕️ You Don't need to meet me to buy a coffee: https://www.buymeacoffee.com/moelzanaty
???? GitHub: https://github.com/mohammedelzanaty
???? LinkedIn: https://www.linkedin.com/in/mohammedelzanaty129/
???? Twitter: https://twitter.com/mohammdelzanaty
???? mohammedelzanaty129@gmail.com
▬ ⚙️ My Equipment Gear ▬▬▬▬▬▬▬▬▬▬
???? https://kit.co/mohammdelzanaty/my-youtube-and-teaching-gear
▬ ???? My Editor Settings ▬▬▬▬▬▬▬▬▬▬
???? Night Owl Color Theme
???? Dank Mono Font
or more information - https://www.youtub.com/watch?v=ykA7WnUQuV0