
I've added the solution here because the reader is obliged to go to the sandbox to see the solution, which has not happened till now in the course. And even there's already a link for doing that just above.
19 lines
263 B
Markdown
19 lines
263 B
Markdown
``` js run
|
|
|
|
// before the call
|
|
let menu = {
|
|
width: 200,
|
|
height: 300,
|
|
title: "My menu"
|
|
};
|
|
|
|
function multiplyNumeric(obj) {
|
|
for (let key in obj) {
|
|
if (typeof obj[key] == 'number') {
|
|
obj[key] *= 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
alert(menu);
|
|
```
|