This page contains a list of JavaScript programs. Each JavaScript program is explained with steps, output, and explanation.
Arithmetic Operations
JavaScript: Add Two NumbersJavaScript: Subtract Two Numbers
JavaScript: Multiply Two Numbers
JavaScript: Divide Two Numbers
JavaScript: Find the Remainder of Two Numbers
Number Programs
JavaScript: Check if a Number is Even or OddJavaScript: 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
String Programs
JavaScript: Reverse a StringJavaScript: Check if a String is a Palindrome
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: Count the Number of Words in a String
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
Temperature Conversion
JavaScript: Convert Celsius to FahrenheitJavaScript: Convert Fahrenheit to Celsius
Geometry Programs
JavaScript: Find the Area of a CircleJavaScript: Find the Perimeter of a Rectangle
Array Programs
JavaScript: Sort an ArrayJavaScript: 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
Sorting Algorithms
JavaScript: Implement the Bubble Sort AlgorithmJavaScript: Implement the Quick Sort Algorithm
JavaScript: Implement the Insertion Sort Algorithm
Utility Programs
JavaScript: Get the Current Date and TimeJavaScript: Implement a Countdown Timer
JavaScript: Validate an Email Address
JavaScript: Validate a Phone Number
JavaScript: Swap Two Variables
Data Structure Programs
JavaScript: Implement a Stack using Arrays / ObjectsJavaScript: 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
Functions
JavaScript Function: Sum of Two NumbersJavaScript: Implement a Basic Calculator
Comments
Post a Comment
Leave Comment