Quiz · Functions · lesson 6 of 10
Quiz — function types and void
Question 1 of 2
What does the program print?
type Fn = () => void;
const f: Fn = () => 42;
console.log(f());What does the program print?
type Fn = () => void;
const f: Fn = () => 42;
console.log(f());