Update solution.md
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.
This commit is contained in:
parent
e6b28a38ec
commit
95af86c3ab
1 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
``` 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);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue