A dot looks for a property literally named key.
Acceptance criteria
- 1.#out should show Toyota.
A dot looks for a property literally named key.
const car = { brand: "Toyota" }; const key = "brand"; const value = car.key; document.querySelector('#out').textContent = value === undefined ? "not found" : value;
Output ready when you are
Press Run to render your code, or Submit to validate your solution.