TypeScript Magic Quiz

Test your knowledge of TypeScript by answering this quiz!
Question about TypeScript Basics

Given the following code:

interface Player {
  first: string;
  last: string;
  team: string;
  points?: string;

let player: Player = {};

Which of the following is an invalid type for the variable player?

Not sure about the answer? Want to learn more?
Check out this learning:
TypeScript BasicsLast updated today