An object turns every key into a string.
Acceptance criteria
- 1.#out should show a number key.
An object turns every key into a string.
const store = {}; store[1] = "a number key"; document.querySelector('#out').textContent = Object.keys(store)[0] === 1 ? store[1] : "the key became text";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.