April 2017
Beginner to intermediate
378 pages
7h 57m
English
In vanilla JavaScript, you must have observed code blocks like this:
(function(){ var x = 20; var y = x * 30; })(); //IIFE // x & y are both undefined here.
Modules are achieved in ES6/TS using the imports and exports syntax:
logic.tsexport function process(){ x = 20; y = x * 30; } exec.ts import { process } from './logic'; process();
These are the bare essentials that we would need to get started with TypeScript. We will look at more such concepts where needed.
With this we wrap up the key concepts needed to get started with TypeScript. Let us get started with Angular.
Read now
Unlock full access