TypeScript Essentials (part 2) | TypeScript මතක් කරගමු :: Angular 15 Series

Опубликовано: 05 Август 2026
на канале: Bit by Bit Studio
81
6

Before diving into angular development, you need to understand or recall essential concepts of TypeScript programming language. In this video, we have discussed what TypeScript is, How we can achieve OOP(Object Oriented Programming concepts) through TypeScript, and also most of the essential concepts of TypeScript programming language including but not limited to

Arrow Functions
Interfaces
Class
Constructors
Access Modifiers
Properties
Modules

1) Arrow Functions
ES6 version of TypeScript provides an arrow function which is the shorthand syntax for defining the anonymous function.

2) Interface
Interfaces are capable of describing the wide range of shapes that JavaScript objects can take.

3) Class
TypeScript - Classes. In object-oriented programming languages like Java and C#, classes are the fundamental entities used to create reusable components.

4) Constructors
A constructor is a special function of the class that is responsible for initializing the variables of the class. TypeScript defines a constructor using the constructor keyword. A constructor is a function and so it can be parameterized.

5) Access Modifiers
Typescript allows us to use access modifiers at the class level using public, private, and protected keywords. It gives direct access control to the class member.

6) Modules
In TypeScript, just as in ECMAScript 2015, any file containing a top-level import or export is considered a module.

Music by Yurii Kohut from Pixabay
(https://pixabay.com/users/lvymusic-27...)