Fill: Function Type
Fill in the Blank Easy
Question
Fill in the blank to declare a function type that returns void:
Code
type Callback = () ___ void;
Hint
Function types use an arrow to separate parameters from return type.
Explanation
The arrow is =>. The full type is () => void — a function that takes no parameters and returns void. The => is the type-level arrow, analogous to the value-level arrow in arrow functions.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.