Your First Look at TypeScript
Write and run your first TypeScript code.
Time to peek
Let's look at real TypeScript. Don't worry, it looks just like JavaScript with tiny extras. 😄
A simple value
Here we store a name. The ": string" is just a label saying "this holds text".
let name: string = "Alex";
console.log(name);All lessons in this course
- What is TypeScript?
- Why TypeScript Beats Plain JS
- Your First Look at TypeScript