The brackets run the function and pass its result instead.
Acceptance criteria
- 1.#out should show done.
The brackets run the function and pass its result instead.
function run(callback) { return typeof callback === "function" ? callback() : "not a function"; } function finish() { return "done"; } document.querySelector('#out').textContent = run(finish());
Output ready when you are
Press Run to render your code, or Submit to validate your solution.