According to the official MDN documentation, the destructuring assignment syntax “is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into…