Please enable JavaScript.
Coggle requires JavaScript to display documents.
TS-General - Coggle Diagram
TS-General
Component
Types
Any
Built-in types
Number, String, Boolean, Void, Null, Undefine
User-defined types
(enums), classes, interfaces, arrays, and tuple.
Variables
-
-
Inferred Typing
TypeScript encourages declaring a variable without a type. In such cases, the compiler will determine the type of the variable on the basis of the value assigned to it.
-
Functions
Optional Parameters
function disp_details(id:number,name:string,mail_id?:string) { }
-
Default Parameters
function calculate_discount(price:number,rate:number = 0.50) { }
-
-
-
-
-
-
-
Overview
What is TypeScript?
TypeScript is a typed superset of JavaScript compiled to JavaScript. In other words, TypeScript is JavaScript plus some additional features.
-
-
-
-