
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 6710 Articles for Javascript

1K+ Views
In this problem statement, our aim is to find the nth element in the fibonacci series with the help of Javascript functionalities. To solve this problem we will use a recursive technique. Understanding the problem statement The problem is to write a function in Javascript that will help find the nth number in the fibonacci sequence. For example, if we want to know the 3rd number in the fibonacci series then the 3rd number is 2. What is the Fibonacci series? The Fibonacci sequence is the chain of numbers in which each number is the sum of previous numbers. The ... Read More

2K+ Views
In this problem statement, our aim is to sort an array recursively using merge sort and implement the code with the help of Javascript. So below we will discuss Merge sort and its implementation. Understanding the problem statement The problem statement is to write a function for merge sort in Javascript that will help to sort the given input array into an ascending or descending order. And we have to create a function which will sort the elements recursively. What is the recursive sorting technique? Recursion is a technique in which a function calls itself to solve a problem. When ... Read More

1K+ Views
In this problem statement, our aim is to apply a sieve of eratosthenes algorithm to find out the prime numbers with the help of Javascript functionalities. So in our program we will implement a function to find primes numbers up to a given limit. Understanding the problem statement The problem statement is to write a function in Javascript that will work for finding the prime numbers up to a given number. And for implementing this function we will use the Sieve of Eratosthenes algorithm. What is the Sieve of Eratosthenes Algorithm ? The Sieve of Eratosthenes is an easy and ... Read More

280 Views
In this problem statement, our main aim is to spiral the elements of the square matrix with the help of Javascript functionalities. There are several methods that can be used to do this task in Javascript. Understanding the problem statement The problem statement is to write a function in Javascript that will show the output as spiraling the elements of a square matrix. For example, if we have a two dimensional matrix as [1, 2] [3, 4], if we spiral the elements in clockwise direction then the output array will be [1, 2, 4, 3]. Logic for the ... Read More

4K+ Views
In this problem statement, our task is to encrypt the input plain text in ciphertext with the help of Javascript functionalities. There are several methods that can be used to encrypt a message in Javascript. One simple method to encrypt the string is Caesar Cipher. Understanding the problem statement The problem statement is to write a function in Javascript that will help to encrypt the given input string into a non readable format. For example, if we have a string "hello world", the encrypted version of this string is "khoor zruog" by shifting each character by two positions. What is ... Read More

524 Views
In this problem statement, our task is to capitalize the first letters of each word with the help of Javascript functionalities. To solve this problem we need to understand the meaning and logic of the problem. Understanding the problem statement The problem statement is to write a function in Javascript that will help to capitalize the first letter of every word in the given string. For example, if we have a string "hello world", the converted version of this string is "Hello World". Logic for the given problem For the code we will create a function to do the given ... Read More

1K+ Views
In this problem statement, our aim is to reverse the words within keeping their order in the same order with the help of Javascript functionalities. So for solving this problem we can use traditional for loops and also built-in methods or Javascript. Understanding the problem statement The problem statement is aiming for a function which takes a string as input and will return a new string in which the order of the words should remain intact but in reversed direction. For example, we have given a string "Hello World" so the function should return "olleH dlroW", here "Hello" is reversed ... Read More

329 Views
In this problem statement, our aim is to check for string anagrams with the help of Javascript functionalities. So for solving this problem first we need to understand the problem in simple terms. Understanding the problem statement We have given a string as an input string and our main aim is to check if the string is an anagram string or not. If it is anagram then return true otherwise return false. What do you mean by anagrams? In the given problem statement there is the usage of the word anagram!! Let’s first understand the meaning of this word. Anagram ... Read More

204 Views
In this problem statement, our aim is to create a function to find out that the given string is palindrome with the help of Javascript functionalities. So for solving this problem first we need to understand the problem in simple terms. Understanding the problem statement We have given a string as an input string and our main aim is to check if the string is a palindrome string or not. If it is palindrome then return true otherwise return false. What do you mean by palindrome? In the given problem statement there is the usage of the word palindrome !! ... Read More

1K+ Views
In the given task, our aim is to create a counting sorting technique and implement this problem with the help of Javascript functionalities. What is the Counting Sort? The counting sort is a process for sorting a data set of objects as per the keys. It works by counting the number of items that have different key values and finding the position of each object in the sorted output. The idea of counting sort is to place the items directly into its correct place in the output array. In the beginning of the algorithm we need to find ... Read More