SlideShare a Scribd company logo
PROGRESSIVE WEB APPLICATION DEVELOPMENT
TYPESCRIPT
 TypeScript is typed JavaScript. TypeScript adds types to JavaScript to help,
speed up the development by catching errors before even run the JavaScript
code.
 TypeScript is an open-source programming language that builds on top of
JavaScript. It works on any web browser, any OS, and any environment
that JavaScript runs.
Basic Types
Type Annotation – learn how to use type annotation to define the static type
for variables, function parameters, and return values.
Type Inference – explain where and how TypeScript infers types of
variables.
•Number – learn about the numeric types including floating-point numbers and big integers.
•String –how to use the string type in TypeScript.
•Boolean –the boolean type and how to use it effectively.
•Object Type – the object type that represents non-primitive values.
•Array –how to use an array and its operations.
•Tuple - to store a fixed number of elements with known types in a tuple.
•Enum –how to define a group of named constants by using the enum type.
•Any Type – to use the any type to store a value of any type in a variable.
Void type - how to use the void type as the return type of functions that do not return any
value.
•Never Type – to use the never type that contains no value.
•Union Types- how to store a value of one or several types in a variable with the union type.
•String Literal Types – learn to define a type that accepts only a specified string literal.
•Type Aliases –how to define new names for types using type aliases.
Control Flow Statements
•if…else – to execute code based on a condition.
•switch..case –how to use the switch statement to allow a number of possible
execution paths.
•for – create a loop that executes a specified number of times.
•while – create a pretest loop that executes as long as a condition is true.
•do…while – learn how to create a posttest loop that executes until a condition
is false.
•break –how to use the break statement to terminate a loop or a switch.
•continue –to skip to the end of a loop and continue to the next iteration.
Functions
Functions – to declare a function that uses type annotation in TypeScript.
Function types –on how to use function types to define types for functions.
Optional Parameters - how to define functions with optional parameters.
Default Parameters – introduce to default parameters.
Rest Parameters – use the rest parameters to handle an infinite number of
arguments of a function.
Function overloadings – learn how to establish between parameter types and
results of a function via function overloadings.
Classes
•Classes –to construct a class in TypeScript.
•Access Modifiers – private, protected, and public access modifiers.
•The readonly Modifier – learn how to use the readonly modifier to make
class properties immutable.
•Getters & Setters –how to use the getters and setters to control the access of
the class properties.
•Inheritance - to use the inheritance to reuse the functionality of another class.
•Static methods & properties – define static methods and variables shared by
all instances of a class.
•Abstract Classes – explain the abstract classes that define some common
behaviors.
Interfaces
• Interfaces – to interfaces and how to use them for creating contracts within
code.
• Extending Interfaces – to extend an interface to create a combination of
interfaces.
• Interfaces vs. Abstract Classes – explain the differences between interfaces
and abstract classes.
Advanced Types
• Intersection Types – how to create a new type that has all the features of
existing types.
• Type Guards – to use type guards to narrow the type of a variable within a
conditional block.
• Type Assertions –using a type assertion to tell the compiler to treat a value as
a specified type.
Generics
• Introduction to TypeScript Generics –to use TypeScript generics to develop
generic functions.
• Generic constraints –how to add constraints to the generic types.
• Generic Classes –how to develop generic classes.
• Generic Interfaces – walk through the steps for creating generic interfaces.
Modules
• TypeScript Modules – introduce to modules in TypeScript and how to use
them in other modules.
Setting up TypeScript
• Node.js TypeScript – how to set up a development environment for using
TypeScript in the Node.js project.
• TypeScript Vite – set up a web project that uses TypeScript and Vite to
compile the TypeScript into JavaScript.
Ad

More Related Content

Similar to Type Script notes for Data Structures using java (20)

JVM and OOPS Introduction
JVM and OOPS IntroductionJVM and OOPS Introduction
JVM and OOPS Introduction
SATYAM SHRIVASTAV
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
Srizan Pokrel
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
Dilawar Khan
 
15reflection in c#
15reflection  in c#15reflection  in c#
15reflection in c#
Sireesh K
 
Md03 - part3
Md03 - part3Md03 - part3
Md03 - part3
Rakesh Madugula
 
Python_basics.pptx
Python_basics.pptxPython_basics.pptx
Python_basics.pptx
RichardGuerra19
 
Typescript ppt
Typescript pptTypescript ppt
Typescript ppt
akhilsreyas
 
Introduction to Scala Type Classes Presentation
Introduction to Scala Type Classes PresentationIntroduction to Scala Type Classes Presentation
Introduction to Scala Type Classes Presentation
Knoldus Inc.
 
Quick Interview Preparation for C# All Concepts
Quick Interview Preparation for C# All ConceptsQuick Interview Preparation for C# All Concepts
Quick Interview Preparation for C# All Concepts
Karmanjay Verma
 
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
markbrianBautista
 
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02) iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
Jonathan Engelsma
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
Mohammed Safwat Abu Kwaik
 
Variables in Pharo
Variables in PharoVariables in Pharo
Variables in Pharo
Marcus Denker
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
teach4uin
 
core_java.ppt
core_java.pptcore_java.ppt
core_java.ppt
YashikaDave
 
Swift Tutorial Part 2. The complete guide for Swift programming language
Swift Tutorial Part 2. The complete guide for Swift programming languageSwift Tutorial Part 2. The complete guide for Swift programming language
Swift Tutorial Part 2. The complete guide for Swift programming language
Hossam Ghareeb
 
Abstract class and Interface
Abstract class and InterfaceAbstract class and Interface
Abstract class and Interface
Haris Bin Zahid
 
Type Systems
Type SystemsType Systems
Type Systems
Jordan Parmer
 
Abstraction1
Abstraction1Abstraction1
Abstraction1
zindadili
 
Functional OOP, Clojure style
Functional OOP, Clojure styleFunctional OOP, Clojure style
Functional OOP, Clojure style
yoavrubin
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
Srizan Pokrel
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
Dilawar Khan
 
15reflection in c#
15reflection  in c#15reflection  in c#
15reflection in c#
Sireesh K
 
Introduction to Scala Type Classes Presentation
Introduction to Scala Type Classes PresentationIntroduction to Scala Type Classes Presentation
Introduction to Scala Type Classes Presentation
Knoldus Inc.
 
Quick Interview Preparation for C# All Concepts
Quick Interview Preparation for C# All ConceptsQuick Interview Preparation for C# All Concepts
Quick Interview Preparation for C# All Concepts
Karmanjay Verma
 
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf04_-_Inheritance_Polymorphism_and_Interfaces.pdf
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
markbrianBautista
 
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02) iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 02)
Jonathan Engelsma
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
teach4uin
 
Swift Tutorial Part 2. The complete guide for Swift programming language
Swift Tutorial Part 2. The complete guide for Swift programming languageSwift Tutorial Part 2. The complete guide for Swift programming language
Swift Tutorial Part 2. The complete guide for Swift programming language
Hossam Ghareeb
 
Abstract class and Interface
Abstract class and InterfaceAbstract class and Interface
Abstract class and Interface
Haris Bin Zahid
 
Abstraction1
Abstraction1Abstraction1
Abstraction1
zindadili
 
Functional OOP, Clojure style
Functional OOP, Clojure styleFunctional OOP, Clojure style
Functional OOP, Clojure style
yoavrubin
 

More from Arumugam90 (20)

Data Structures using java notes for MCA
Data Structures using java notes for MCAData Structures using java notes for MCA
Data Structures using java notes for MCA
Arumugam90
 
Progressive Web Application Development for MCA
Progressive Web Application Development for MCAProgressive Web Application Development for MCA
Progressive Web Application Development for MCA
Arumugam90
 
Notes for AR.ppt
Notes for AR.pptNotes for AR.ppt
Notes for AR.ppt
Arumugam90
 
Unity Tutorial_Highlighted Notes.pdf
Unity Tutorial_Highlighted Notes.pdfUnity Tutorial_Highlighted Notes.pdf
Unity Tutorial_Highlighted Notes.pdf
Arumugam90
 
AUGMENTED REALITY.pptx
AUGMENTED REALITY.pptxAUGMENTED REALITY.pptx
AUGMENTED REALITY.pptx
Arumugam90
 
Introductiontokaryotyping.pptx
Introductiontokaryotyping.pptxIntroductiontokaryotyping.pptx
Introductiontokaryotyping.pptx
Arumugam90
 
ML
MLML
ML
Arumugam90
 
intro.ppt
intro.pptintro.ppt
intro.ppt
Arumugam90
 
Unit I_Computer Networks_2.ppt
Unit I_Computer Networks_2.pptUnit I_Computer Networks_2.ppt
Unit I_Computer Networks_2.ppt
Arumugam90
 
Unit_I_Computer Networks 4.pdf
Unit_I_Computer Networks 4.pdfUnit_I_Computer Networks 4.pdf
Unit_I_Computer Networks 4.pdf
Arumugam90
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
Arumugam90
 
Chapter16.ppt
Chapter16.pptChapter16.ppt
Chapter16.ppt
Arumugam90
 
Chapter15.ppt
Chapter15.pptChapter15.ppt
Chapter15.ppt
Arumugam90
 
HTTP, JSP, and AJAX.pdf
HTTP, JSP, and AJAX.pdfHTTP, JSP, and AJAX.pdf
HTTP, JSP, and AJAX.pdf
Arumugam90
 
JSP Components and Directives.pdf
JSP Components and Directives.pdfJSP Components and Directives.pdf
JSP Components and Directives.pdf
Arumugam90
 
JSP.pdf
JSP.pdfJSP.pdf
JSP.pdf
Arumugam90
 
Java Servlets.pdf
Java Servlets.pdfJava Servlets.pdf
Java Servlets.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
JDBC.pdf
JDBC.pdfJDBC.pdf
JDBC.pdf
Arumugam90
 
Data Structures using java notes for MCA
Data Structures using java notes for MCAData Structures using java notes for MCA
Data Structures using java notes for MCA
Arumugam90
 
Progressive Web Application Development for MCA
Progressive Web Application Development for MCAProgressive Web Application Development for MCA
Progressive Web Application Development for MCA
Arumugam90
 
Notes for AR.ppt
Notes for AR.pptNotes for AR.ppt
Notes for AR.ppt
Arumugam90
 
Unity Tutorial_Highlighted Notes.pdf
Unity Tutorial_Highlighted Notes.pdfUnity Tutorial_Highlighted Notes.pdf
Unity Tutorial_Highlighted Notes.pdf
Arumugam90
 
AUGMENTED REALITY.pptx
AUGMENTED REALITY.pptxAUGMENTED REALITY.pptx
AUGMENTED REALITY.pptx
Arumugam90
 
Introductiontokaryotyping.pptx
Introductiontokaryotyping.pptxIntroductiontokaryotyping.pptx
Introductiontokaryotyping.pptx
Arumugam90
 
Unit I_Computer Networks_2.ppt
Unit I_Computer Networks_2.pptUnit I_Computer Networks_2.ppt
Unit I_Computer Networks_2.ppt
Arumugam90
 
Unit_I_Computer Networks 4.pdf
Unit_I_Computer Networks 4.pdfUnit_I_Computer Networks 4.pdf
Unit_I_Computer Networks 4.pdf
Arumugam90
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
Arumugam90
 
HTTP, JSP, and AJAX.pdf
HTTP, JSP, and AJAX.pdfHTTP, JSP, and AJAX.pdf
HTTP, JSP, and AJAX.pdf
Arumugam90
 
JSP Components and Directives.pdf
JSP Components and Directives.pdfJSP Components and Directives.pdf
JSP Components and Directives.pdf
Arumugam90
 
Java Servlets.pdf
Java Servlets.pdfJava Servlets.pdf
Java Servlets.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
Ad

Recently uploaded (20)

Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
Cyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top QuestionsCyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top Questions
SONU HEETSON
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho..."Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
ruslana1975
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
Cyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top QuestionsCyber security COPA ITI MCQ Top Questions
Cyber security COPA ITI MCQ Top Questions
SONU HEETSON
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho..."Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
ruslana1975
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
Ad

Type Script notes for Data Structures using java

  • 1. PROGRESSIVE WEB APPLICATION DEVELOPMENT TYPESCRIPT  TypeScript is typed JavaScript. TypeScript adds types to JavaScript to help, speed up the development by catching errors before even run the JavaScript code.  TypeScript is an open-source programming language that builds on top of JavaScript. It works on any web browser, any OS, and any environment that JavaScript runs. Basic Types Type Annotation – learn how to use type annotation to define the static type for variables, function parameters, and return values. Type Inference – explain where and how TypeScript infers types of variables.
  • 2. •Number – learn about the numeric types including floating-point numbers and big integers. •String –how to use the string type in TypeScript. •Boolean –the boolean type and how to use it effectively. •Object Type – the object type that represents non-primitive values. •Array –how to use an array and its operations. •Tuple - to store a fixed number of elements with known types in a tuple. •Enum –how to define a group of named constants by using the enum type. •Any Type – to use the any type to store a value of any type in a variable. Void type - how to use the void type as the return type of functions that do not return any value. •Never Type – to use the never type that contains no value. •Union Types- how to store a value of one or several types in a variable with the union type. •String Literal Types – learn to define a type that accepts only a specified string literal. •Type Aliases –how to define new names for types using type aliases.
  • 3. Control Flow Statements •if…else – to execute code based on a condition. •switch..case –how to use the switch statement to allow a number of possible execution paths. •for – create a loop that executes a specified number of times. •while – create a pretest loop that executes as long as a condition is true. •do…while – learn how to create a posttest loop that executes until a condition is false. •break –how to use the break statement to terminate a loop or a switch. •continue –to skip to the end of a loop and continue to the next iteration.
  • 4. Functions Functions – to declare a function that uses type annotation in TypeScript. Function types –on how to use function types to define types for functions. Optional Parameters - how to define functions with optional parameters. Default Parameters – introduce to default parameters. Rest Parameters – use the rest parameters to handle an infinite number of arguments of a function. Function overloadings – learn how to establish between parameter types and results of a function via function overloadings.
  • 5. Classes •Classes –to construct a class in TypeScript. •Access Modifiers – private, protected, and public access modifiers. •The readonly Modifier – learn how to use the readonly modifier to make class properties immutable. •Getters & Setters –how to use the getters and setters to control the access of the class properties. •Inheritance - to use the inheritance to reuse the functionality of another class. •Static methods & properties – define static methods and variables shared by all instances of a class. •Abstract Classes – explain the abstract classes that define some common behaviors.
  • 6. Interfaces • Interfaces – to interfaces and how to use them for creating contracts within code. • Extending Interfaces – to extend an interface to create a combination of interfaces. • Interfaces vs. Abstract Classes – explain the differences between interfaces and abstract classes. Advanced Types • Intersection Types – how to create a new type that has all the features of existing types. • Type Guards – to use type guards to narrow the type of a variable within a conditional block. • Type Assertions –using a type assertion to tell the compiler to treat a value as a specified type.
  • 7. Generics • Introduction to TypeScript Generics –to use TypeScript generics to develop generic functions. • Generic constraints –how to add constraints to the generic types. • Generic Classes –how to develop generic classes. • Generic Interfaces – walk through the steps for creating generic interfaces. Modules • TypeScript Modules – introduce to modules in TypeScript and how to use them in other modules. Setting up TypeScript • Node.js TypeScript – how to set up a development environment for using TypeScript in the Node.js project. • TypeScript Vite – set up a web project that uses TypeScript and Vite to compile the TypeScript into JavaScript.
  翻译: