Without new the constructor builds nothing and returns undefined.
Acceptance criteria
- 1.#out should show Ada.
Without new the constructor builds nothing and returns undefined.
function Person(name) { this.name = name; } const person = { name: undefined }; document.querySelector('#out').textContent = person.name === undefined ? "no object built" : person.name;
Output ready when you are
Press Run to render your code, or Submit to validate your solution.