diff --git a/1-js/04-object-basics/01-object/8-multiply-numeric/solution.md b/1-js/04-object-basics/01-object/8-multiply-numeric/solution.md index e69de29b..e7edda60 100644 --- a/1-js/04-object-basics/01-object/8-multiply-numeric/solution.md +++ b/1-js/04-object-basics/01-object/8-multiply-numeric/solution.md @@ -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); +```