TypeScript Tutorial with Examples


TypeScript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript.

TypeScript Examples/Programs with Output

TypeScript: Subtract Two Numbers
TypeScript: Add Two Numbers
TypeScript: Multiply Two Numbers
TypeScript: Divide Two Numbers
TypeScript: Find the Remainder of Two Numbers
TypeScript: Check if a Number is Odd or Even
TypeScript: Find the Maximum of Three Numbers
TypeScript: Calculate the Area of a Circle
TypeScript: Calculate the Area of a Triangle
TypeScript: Find the Factorial of a Number
TypeScript: Generate Fibonacci Series
TypeScript: Find Prime Numbers in a Range
TypeScript: Reverse a String
TypeScript: Check if a String is a Palindrome
TypeScript: Count Vowels in a String
TypeScript: Sort an Array of Numbers
TypeScript: Find the Maximum Element in an Array
TypeScript: Find the Minimum Element in an Array
TypeScript: Sum Elements of an Array
TypeScript: Implement a Stack
TypeScript: Implement a Queue
TypeScript: Merge Two Sorted Arrays
TypeScript: Search an Element in an Array
TypeScript: Implement Binary Search
TypeScript: Implement Bubble Sort
TypeScript: Find the GCD of Two Numbers
TypeScript: Find the LCM of Two Numbers
TypeScript: Check if a Number is Prime
TypeScript: Convert Celsius to Fahrenheit
TypeScript: Convert Fahrenheit to Celsius
TypeScript: Count Occurrences of a Character in a String
TypeScript: Remove Duplicates from an Array
TypeScript: Implement the Quick Sort Algorithm
TypeScript: Check if Two Strings are Anagrams
TypeScript: Implement a Linked List
TypeScript: Detect a Cycle in a Linked List
TypeScript: Implement a Binary Search Tree
TypeScript: Implement a Priority Queue
TypeScript: Implement an AVL Tree
TypeScript: Find the Second Largest Element in an Array
TypeScript: Find Common Elements in Two Arrays
TypeScript: Implement a Circular Queue using Arrays
TypeScript: Implement a Doubly Linked List
TypeScript: Basic Type Annotations

Comments