Skip to content

Commit f2e27fd

Browse files
authored
Merge pull request #738 from maurodibert/patch-15
Update solution.md
2 parents e6b28a3 + 95af86c commit f2e27fd

File tree

1 file changed

+19
-0
lines changed
  • 1-js/04-object-basics/01-object/8-multiply-numeric

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
``` js run
2+
3+
// before the call
4+
let menu = {
5+
width: 200,
6+
height: 300,
7+
title: "My menu"
8+
};
9+
10+
function multiplyNumeric(obj) {
11+
for (let key in obj) {
12+
if (typeof obj[key] == 'number') {
13+
obj[key] *= 2;
14+
}
15+
}
16+
}
17+
18+
alert(menu);
19+
```

0 commit comments

Comments
 (0)