JavaScript Programs

This page contains a list of JavaScript programs. Each JavaScript program is explained with steps, output, and explanation.

JavaScript Programs with Output

JavaScript: Add Two Numbers
JavaScript: Subtract Two Numbers
JavaScript: Multiply Two Numbers
JavaScript: Divide Two Numbers
JavaScript: Find the Remainder of Two Numbers
JavaScript: Check if a Number is Even or Odd
JavaScript: Find the Largest Among Three Numbers
JavaScript: Find the Smallest Among Three Numbers
JavaScript: Check if a Number is Prime
JavaScript: Find the Factorial of a Number
JavaScript: Print the Fibonacci Series
JavaScript: Reverse a String
JavaScript: Check if a String is a Palindrome
JavaScript: Convert Celsius to Fahrenheit
JavaScript: Convert Fahrenheit to Celsius
JavaScript: Find the Area of a Circle
JavaScript: Find the Perimeter of a Rectangle
JavaScript: Sort an Array
JavaScript: Find the Maximum and Minimum Element in an Array
JavaScript: Find the Sum of Elements in an Array
JavaScript: Merge Two Arrays
JavaScript: Remove Duplicates from an Array
JavaScript: Count the Occurrences of an Element in an Array
JavaScript: Search for an Element in an Array
JavaScript: Implement the Bubble Sort Algorithm
JavaScript: Implement the Quick Sort Algorithm
JavaScript: Implement the Insertion Sort Algorithm
JavaScript: Check if a String Contains Another String
JavaScript: Split a String into an Array of Words
JavaScript: Join an Array of Words into a String
JavaScript: Check if Two Strings are Anagrams
JavaScript: Implement a Basic Calculator
JavaScript: Get the Current Date and Time
JavaScript: Implement a Countdown Timer
JavaScript: Validate an Email Address
JavaScript: Validate a Phone Number
JavaScript: Swap Two Variables
JavaScript: Count the Number of Words in a String
JavaScript: Implement a Stack using Arrays / Objects
JavaScript: Implement a Queue using Arrays / Objects
JavaScript: Depth-First Search (DFS) on a Graph
JavaScript: Breadth-First Search (BFS) on a Graph
JavaScript: Implement a Binary Search Tree
JavaScript: Detect a Cycle in a Linked List
JavaScript: Implement the Tower of Hanoi Algorithm
JavaScript: Search for an Element in a Binary Search Tree
JavaScript: Implement a Priority Queue
JavaScript: Implement an AVL Tree
JavaScript: Implement a Circular Queue using Arrays
JavaScript: Implement a Doubly Linked List
JavaScript Function: Sum of Two Numbers
JavaScript: Convert a String to Title Case
JavaScript: Reverse a String without Built-in reverse() Function
JavaScript: Reverse the Words in a Sentence without Built-in Function

Comments