Destructuring in JavaScript.
Suppose there is a object and there are two properties which you have to use many times in the program that you can create each variable for each property.
const obj = {
name: "rohit",
id : 123,
}
javascript-insights-by-rohit.hashnode.dev3 min read