Foundations
Hello TypeScript
Start with a small TypeScript program that stores a typed value and prints it.
Hello
hello.ts
const name: string = ;
const message: string = `Hello, ${name}!`;
console.log(message);
const name: string = ;
const message: string = `Hello, ${name}!`;
console.log(message);
const name: string = ;
const message: string = `Hello, ${name}!`;
console.log(message);
type annotation
TypeScript lets you write JavaScript plus explicit types such as `string`, so tools can catch mistakes before the code runs.