- 4 years ago
- Afaq Arif
- 2,164 Views
-
4
In this chapter, we will learn how can we write JavaScript the way we want through Typescript and how can we master Typescript to write Object-Oriented Programs.
TypeScript Tutorial
This tutorial will give a brief introduction to TypeScript. It allows you to create JavaScript in the manner in which you truly require it. TypeScript is a real composition of JavaScript that assembles to plain JavaScript. TypeScript is an accurate object-oriented program having classes, interfaces and passively composed like C# or Java. The famous JavaScript framework Angular 2.0 is scripted in Typescript. Programmers can help themselves with building object-oriented programs by skilling TypeScript and can have them arranged to JavaScript, both on the server-side and client-side.
Audience
TypeScript is way easy to handle for the programmers of Object-Oriented World. With TypeScript knowledge, they can create web applications a lot quicker, as TypeScript provides great tooling support.
Prerequisites
One must have a sound knowledge of OOP ideas and basic JavaScript if you are reading this tutorial and make the most of this tutorial.
Compile/Execute TypeScript Programs
Let us use the Try it an option in the examples below given in this lesson. You should utilize it and make the most of your learning.
Try it option is accessible at the top right corner of the below sample code box:
var message:string = "Hello World"
console.log(message)
It will generate following JavaScript code on composing.
//Generated by typescript 1.8.10
var message = "Hello World";
console.log(message);
- 4 years ago
- Afaq Arif
- 2,164 Views
-
4