01 / 05
Too few arguments and you get told off
A function like the ones you made in chapter 1 gives you an error if you call it without an argument. TypeScript watches even the number of arguments.
"Expected 1 arguments, but got 0." is what that looks like.
function call(name: string): void { console.log("Hi, " + name);}call();Result
Type error: Expected 1 arguments, but got 0.