© 2026 Hedgehog Software, LLC
textBox.addEventListener("keydown", (event) => console.log(`You pressed "${event.key}".`), );
In this case, the value of console.log(), which is undefined, is implicitly returned from the callback function.