← Code LabTypeScript0/50 solved · 0%
Functions · easy

4. Function Types

Define a function type alias.

Create a type alias `MathOp` for a function taking two numbers and returning a number. Then implement `add` using it.
Required in your answer: type MathOp=> number