The destructured name does not match what the module exported.
Acceptance criteria
- 1.#out should show 10.
The destructured name does not match what the module exported.
const mathModule = { double: function (n) { return n * 2; } }; const { doubled } = mathModule; document.querySelector('#out').textContent = typeof doubled === "function" ? String(doubled(5)) : "wrong name";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.