Skip to content
dreamcode
dreamcode
Lesson
Practice · Aliases
  1. Predict
  2. Arrange
  3. Fill in
+20 XP on finish
PREDICT · READ BEFORE YOU WRITE

Is this code valid TypeScript?

Trace the program the way the computer would, then make your call before running anything.

interface Client { id: number; }
interface Client { name: string; }
const c: Client = { id: 1, name: 'Alice' };