World Class Web Components
❓ CHALLENGE
const obj1 = {
name: "Alice",
age: 25
};
const obj2 = {
age: 30,
city: "Wonderland"
};
with (obj1) {
with (obj2) {
name = "Bob";
console.log(name, age);
}
}
JA JavaScript @javascript · 31K subscribers
const obj1 = {
name: "Alice",
age: 25
};
const obj2 = {
age: 30,
city: "Wonderland"
};
with (obj1) {
with (obj2) {
name = "Bob";
console.log(name, age);
}
}