01 / 05
Types go on an arrow function the same way
Remember the => shape from the JavaScript course. const name = () => { }; — that one.
Where the types go has not changed from a variable or a function. A : and a type after the name of the parameter. That is it.
const call = (name: string) => { console.log("Hi, " + name);};call("Yui");Result
Hi, Yui