object destructuring
Use destructuring to pass variables to an object.
var color = "red";
var shape = "square";
buildObject({ color, shape });
copy
Use destructuring to pass variables to an object.
var color = "red";
var shape = "square";
buildObject({ color, shape });
copy