TypeScript Programs with Output

This page contains a list of TypeScript programs with output and a step-by-step explanation.

Arithmetic Operations

TypeScript: Add Two Numbers
TypeScript: Subtract Two Numbers
TypeScript: Multiply Two Numbers
TypeScript: Divide Two Numbers
TypeScript: Find the Remainder of Two Numbers

Number Programs

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: Check if a Number is Prime
TypeScript: Find the GCD of Two Numbers
TypeScript: Find the LCM of Two Numbers
TypeScript: Convert Celsius to Fahrenheit
TypeScript: Convert Fahrenheit to Celsius

String Programs

TypeScript: Reverse a String
TypeScript: Check if a String is a Palindrome
TypeScript: Count Vowels in a String
TypeScript: Count Occurrences of a Character in a String
TypeScript: Check if Two Strings are Anagrams

Array Programs

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: Merge Two Sorted Arrays
TypeScript: Search an Element in an Array
TypeScript: Implement Binary Search
TypeScript: Remove Duplicates from an Array
TypeScript: Find the Second Largest Element in an Array
TypeScript: Find Common Elements in Two Arrays

Data Structure Programs

TypeScript: Implement a Stack
TypeScript: Implement a Queue
TypeScript: Implement a Circular Queue using Arrays
TypeScript: Implement a Linked List
TypeScript: Detect a Cycle in a Linked List
TypeScript: Implement a Doubly Linked List
TypeScript: Implement a Binary Search Tree
TypeScript: Implement a Priority Queue
TypeScript: Implement an AVL Tree

Sorting Algorithms

TypeScript: Implement Bubble Sort
TypeScript: Implement the Quick Sort Algorithm

Type Annotations

TypeScript: Basic Type Annotations

Comments