I am new to angular 2 and am learning Typescript to create simple applications in angular 2.
And I found that to create applications we can use classes, interfaces, modules, etc. Typescript
But as far as I learned javascript, I know that javascript does not support classes, interfaces, modules, etc.
Below are some of the concepts that I came across during my research.
Interfaces
Interfaces are used to check whether an object matches a specific structure. When defining an interface, we can name a specific combination of variables, making sure that they always go together.
"When you switch to JavaScript, the interfaces disappear - their only goal is to help at the development stage."
In the example below, we define a simple interface for checking the types of function arguments:

"The order of the properties does NOT matter. We only need the required properties to be suitable. If something is missing, has the wrong type, or is called differently, the compiler will warn us."

Classes
When creating large-scale applications, an object-oriented programming style is preferable to many developers.
TypeScript offers a class system, including inheritance, abstract classes, interface implementations, setters / getters, etc. "
Here is the class

Modules
, . . , . .
:

Typescript javascript, , , ..