The internal value should not be part of the returned object.
Acceptance criteria
- 1.#out should show hidden.
The internal value should not be part of the returned object.
const mathModule = (function () { const secret = 2; return { secret: secret, double: function (n) { return n * secret; } }; })(); document.querySelector('#out').textContent = typeof mathModule.secret === "undefined" ? "hidden" : "exposed";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.