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

Type inference lets TypeScript determine a variable's type from its value, so we actually don't need to write obvious annotations:

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

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

Both versions are type-safe, but the inferred version is shorter!

Assignment

Fix the type error by removing the incorrect type annotation.