- What is destructuring in JavaScript and how does it work?
- How can the spread operator be used in JavaScript?
- What are some practical use cases for using destructuring and the spread operator in JavaScript?
- How does destructuring and the spread operator differ from traditional assignment and concatenation in JavaScript?
- Can destructuring and the spread operator be used with non-array and non-object data types in JavaScript?
          Created
          March 28, 2023 18:54 
        
      - 
      
- 
        Save Kishimoto96/50d100eb026ea0b179d5e0b39f00ce20 to your computer and use it in GitHub Desktop. 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
1- Destructuring lets us pull out a specific parts of an array, object or a string. It would be easier to assign values to our variables.
2-spread operator allows us to do shallow copy on arrays, objects and strings. when we use spread operator to copy, and then make a modification to the copied array/objects/strings, it wouldnt affect the original ones.
3-when we want to get some of the attributes from an nested object, we can use destructuring. For spread operator: we can crate new array from the existing one.
4-In traditional assignment, we can create only one variable and assign it at a time. In destructuring, we can easily create and initialize more than one variable at a time. For concatenation: we can use spread operator with strings, objects and arrays.
5-NO