From 95af86c3ab5e39703a453fdfefc9d3844b86b3b9 Mon Sep 17 00:00:00 2001 From: Mau Di Bert Date: Tue, 15 Jan 2019 10:31:05 -0300 Subject: [PATCH] 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. --- .../01-object/8-multiply-numeric/solution.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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); +```