Check out the thread below to know more
👩🏫 Spread syntax can be used with
☝️elements that can be iterated/looped such as array or string
☝️objects
Note: the spread syntax loops through the object properties & add the key-value pairs to the new object
Jan 26, 2023 • 9 tweets • 3 min read
☝️The destructuring expression allows the extraction of properties from objects into distinct variables with the help of a minimum code
📌Check out the thread below to know more
☝️Destructure Syntax for objects
Note: ensure property name and variable name are same while destructuring an object