count should not appear on the returned object.
Acceptance criteria
- 1.#out should show hidden.
count should not appear on the returned object.
const counterModule = (function () { let count = 0; return { count: count, increment: function () { count++; return count; } }; })(); document.querySelector('#out').textContent = typeof counterModule.count === "undefined" ? "hidden" : "exposed";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.