The name is a string but instanceof needs the class.
Acceptance criteria
- 1.#out should show a type problem.
The name is a string but instanceof needs the class.
function describe(fn) { try { fn(); return "worked"; } catch (error) { if (error === TypeError) return "a type problem"; return "something else"; } } document.querySelector('#out').textContent = describe(function () { null.length; });
Output ready when you are
Press Run to render your code, or Submit to validate your solution.