We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Type Inference

TypeScript is great at type inference. Instead of explicitly declaring the type of every variable, TypeScript can infer it from the value:

// explicit (unnecessary)
const bootupLog: string = "starting server...";

// inferred (preferred)
const bootupLog = "starting server...";

Both are equally type-safe, but the inferred version is less typing and leaves less room for human error. Let TypeScript infer types for you!

Assignment

Fix the type error by removing the (incorrect) explicit type declaration.