In a Map forEach the value comes first, then the key.
Acceptance criteria
- 1.#out should show Ada scored 90.
In a Map forEach the value comes first, then the key.
const scores = new Map([["Ada", 90]]); let line = ""; scores.forEach(function (key, value) { line = key + " scored " + value; }); document.querySelector('#out').textContent = line;
Output ready when you are
Press Run to render your code, or Submit to validate your solution.