let foo = {
bar: 13,
baz: 42,
qux: 69
};
let qux = 86;
foo = {
...foo,
qux: qux
}
console.log(foo);
What is above and what is below do the same thing.
let foo = {
bar: 13,
baz: 42,
qux: 69
};
let qux = 86;
foo = {
...foo,
qux
}
console.log(foo);
No comments:
Post a Comment