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

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

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