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:
Mau Di Bert 2019-01-15 10:31:05 -03:00 committed by GitHub
parent e6b28a38ec
commit 95af86c3ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
```