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.

Type Script notes for Data Structures using java

  • 1.
    PROGRESSIVE WEB APPLICATIONDEVELOPMENT 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 – learnabout 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 – todeclare 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 constructa 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 toTypeScript 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.