Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • DSA
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps
    • Software and Tools
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Go Premium
  • JS Tutorial
  • JS Exercise
  • JS Interview Questions
  • JS Array
  • JS String
  • JS Object
  • JS Operator
  • JS Date
  • JS Error
  • JS Projects
  • JS Set
  • JS Map
  • JS RegExp
  • JS Math
  • JS Number
  • JS Boolean
  • JS Examples
  • JS Free JS Course
  • JS A to Z Guide
  • JS Formatter
Open In App
Next Article:
Introduction to JavaScript
Next article icon

JavaScript Coding Questions and Answers

Last Updated : 05 Aug, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

JavaScript is the most commonly used interpreted, and scripted Programming language. It is used to make web pages, mobile applications, web servers, and other platforms. Developed in 1995 by Brendan Eich. Developers should have a solid command over this because many job roles need proficiency in JavaScript.

We will see the Top 50 JavaScript Coding questions and answers including basic and medium JavaScript coding questions and answers. In this article, we will cover everything like JavaScript core concepts- arrays, strings, arrow functions, and classes. These Top 50 coding questions and answers will help you to improve your coding concept in JavaScript.

Basic JavaScript Coding Questions and Answers

If you're a beginner and want to gather some real-time coding examples, then start here. This section will help you understand the fundamentals and solve simple coding problems.

1. Write a Program to reverse a string in JavaScript.

This code splits the string into an array of characters using the split() method, reverses the array, and joins it back into a string using the join() method.

JavaScript
function reverseString(str) 
{
  return str.split("").reverse().join("");
}

console.log(reverseString("GeeksForGeeks"));

Output
skeeGroFskeeG

2. Write a Program to check whether a string is a palindrome string.

  • A palindrome is a word that reads the same word from forward and backward. This ignores spaces and capitalization.
  • The code below checks if a string is a palindrome by reversing it and comparing it to the original string. If both are equal, it returns true otherwise, it is false. "GFG" is a palindrome string so it returns true.
JavaScript
function isPalindrome(str) {
    const reversed = str.split("").reverse().join("");
    return str === reversed;
}

console.log(isPalindrome("GFG"));

Output
true

3. Find the largest number in an array in JavaScript.

Using a For loop:

The code defines a function findLargest that finds the largest number in an array. It starts by assuming the first element is the largest, then iterates through the array. If a larger number is found, it updates the largest value. Finally, it returns the largest number which is 100.

JavaScript
function findLargest(arr) {
    //Suppose first element is the largest
    let largest = arr[0]; 
    for (let i = 1; i < arr.length; i++) {
        if (arr[i] > largest) {
            // Update the largest if a bigger element is found
            largest = arr[i]; 
        }
    }
    return largest;
}

console.log(findLargest([99, 5, 3, 100, 1]));

Output
100

Using the spread operator (...) or Math.max:

The findLargest function uses Math.max() to find the largest number in an array. The spread operator (...arr) expands the array elements so Math.max() can evaluate each value. In the given code, it returns 100, the largest number from [99, 5, 3, 100, 1].

JavaScript
function findLargest(arr) {
    // Math.max() is used to find the largest number
    return Math.max(...arr); 
}

console.log(findLargest([99, 5, 3, 100, 1]));

Output
100

4. How Remove the first element from an array in JavaScript?

The code initializes an array arr with values [5, 6, 7]. The slice(1) method creates a new array, excluding the first element (5), resulting in [6, 7]. Finally, console.log(arr) outputs the modified array [6, 7] to the console.

JavaScript
 // Initialize an array
let arr = [5, 6, 7];
arr = arr.slice(1); 
// Create a new array without the first element
console.log(arr); 

Output
[ 6, 7 ]

5. Write a Program to use a callback function?

This code defines a greet function that takes two arguments- a name and a callback function. It calls the callback with a greeting message using the name. When greet('Geek', message => console.log(message)) is executed, it prints "Hello, Geek!" as output.

JavaScript
function greet(name, callback) {
    callback(`Hello, ${name}!`);
}
greet('Geek', message => console.log(message));

Output
Hello, Geek!

6. Write a code to create an arrow function?

The code defines an arrow function add that takes two arguments a and b and returns their sum (a + b). When console.log(add(6, 2)) is executed, it calls the add function with 6 and 2, and prints the result which is 8, to the console.

JavaScript
const add = (a, b) => a + b;
console.log(add(6, 2));

Output
8

7. Write a Program to add a property to an object?

The code creates an object obj with a name property set to 'Riya'. Then, it adds a new property age with the value 21. Finally, console.log(obj) prints the updated object, which now contains both name and age properties: { name: 'Riya', age: 21 }.

JavaScript
const obj = { name: 'Riya' };
obj.age = 21;
console.log(obj);

Output
{ name: 'Riya', age: 21 }

8. Write a Program to delete a property from an object?

In this code, an object obj with properties name and age is created. The delete keyword removes the age property from the object. After deletion, console.log(obj) outputs the object, which now only contains the name property: { name: 'Riya' }.

JavaScript
const obj = { name: 'Riya', age: 21 };
delete obj.age;
console.log(obj);

Output
{ name: 'Riya' }

9. What will be the output of the given code?

The code uses the reduce method on the array [1, 2, 3] to sum its elements. It takes two parameters, a (accumulator) and b (current value), adding them together. The final result 6 is printed to the console, representing the total of the array's numbers.

JavaScript
console.log([1, 2, 3].reduce((a, b) => a + b));//adds numbers in the array, together using the reduce mehtod

Output
6

10. What will be the output of the given code?

The code console.log('gfg'.repeat(3)); uses the repeat() method to create a new string by repeating the string 'gfg' three times. The output will be 'gfgfgfg' which is displayed in the console. This method is useful for printing repeated text easily.

JavaScript
console.log('gfg'.repeat(3));
//creates a new string by repeating the original string in 3 times

Output
gfggfggfg

11. What will be the output of the given code?

console.log(1 + '2');

The code console.log(1 + '2'); adds the number 1 and the string '2'. In JavaScript, when a number and a string are combined with +, the number is converted to a string. Finally, it results in the string '12', which is then prints to the console.

12. What will be the output of the given code?

console.log('6' - 1);

'6' is a string, so when you use the '-' operator with string and number, JavaScript convert the string to a number automatically which is called type coercion. '6' gets converted to the number 6, then 6 - 1 = 5. So, 5 is the answer.

Output:

5

13. What will be the output of the given code?

console.log(1 === '1');

'1' is a integer and '1' is a string. Strict equality operator(===) check both the type and the value. They look similar but they have different data type. So =, the answer in false.

Output:

false

14. What will be the output of the given code?

'null' represents the absence of any value and 'undefined' represents a variable that has been declared but not assigned any value. The answer is true because JavaScript treats them equal because of '==' loose equality operator.

JavaScript
console.log(null == undefined);

Output
true

15. Write a Program to find a sum of an array?

The sumArray function takes an array arr as input and initializes a variable sum to 0. It loops through each element of the array, adding each element's value to sum. Finally, it returns the total sum which is 33.

JavaScript
function sumArray(arr) {
    let sum = 0;
    for (let i = 0; i < arr.length; i++) {
        sum += arr[i];
    }
    return sum;
}

console.log(sumArray([15, 6, 10, 2]));

Output
33

16. Write a Program to check if a number is prime or not?

The isPrime() function checks if a number num is prime. It returns false for numbers less than or equal to 1. It loops starts from 2 to num - 1, checking if num is divisible by any number in that range. If it is, it returns false otherwise, it returns true.

JavaScript
function isPrime(num) {
    if (num <= 1) 
        return false;
    for (let i = 2; i < num; i++) 
    {
        if (num % i === 0) 
            return false;
    }
    return true;
}

console.log(isPrime(7));

Output
true

17. Write a Program to print Fibonacci sequence up to n terms?

The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, starting from 0 and 1.

The fibonacci function generates the Fibonacci sequence up to n terms. It initializes two variables num1 (0) and num2 (1). In a loop, it prints num1, then calculates the next number as the sum of num1 and num2, updating them for the next iteration. Here, it prints 7 terms.

JavaScript
function fibonacci(n) {
    let num1 = 0, num2 = 1, nextNum;

    console.log("Fibonacci Sequence:");

    for (let i = 1; i <= n; i++) {
        console.log(num1);
        nextNum = num1 + num2;
        num1 = num2;
        num2 = nextNum;
    }
}

fibonacci(7);

Output
Fibonacci Sequence:
0
1
1
2
3
5
8

18. Write a Program to find factorial of a number?

The factorial function calculates the factorial of a given number num. It initializes answer to 1, then multiplies it by each integer from 2 to num in a loop. Finally, it returns the computed factorial. The console.log statement prints the factorial of 7, which is 5040.

JavaScript
function factorial(num) {
    let answer = 1;
    for (let i = 2; i <= num; i++) {
        answer *= i;
    }
    return answer;
}

console.log(factorial(7));  

Output
5040

19. Calculate the Power of a Number in JavaScript?

The power function takes two arguments- base and exponent. It calculates the result of raising base to the power of exponent using the exponentiation operator **.

JavaScript
function power(base, exponent) 
{
  return base ** exponent;
}

console.log(power(3, 4));

Output
81

20. Write a Program to print the frequency of elements in an array?

The frequency function counts how many times each number appears in an array. It creates an empty object freq, iterates through the array, and either increments the count for existing numbers or adds new numbers with a count of 1. Finally, it returns the freq object with the counts.

JavaScript
function frequency(arr) {
    const freq = {};
    for (let i = 0; i < arr.length; i++) {
        if (freq[arr[i]]) {
            freq[arr[i]] += 1;
        } else {
            freq[arr[i]] = 1;
        }
    }
    return freq;
}

console.log(frequency([1, 1, 2, 3, 3, 4])); 

Output
{ '1': 2, '2': 1, '3': 2, '4': 1 }

Medium JavaScript Coding Questions and Answers

Now that you've learned the basics, you can move to more advanced topics. Here, we will dive into complex coding problems and explore deeper concepts to strengthen your skills.

21. Write a Program to count the occurrences of a character in a string in JavaScript?

using split() method

The countChar() function counts how many times a specified character (char) appears in a string (str). It splits the string into an array using the character, then returns the length of the array (length-1), which gives the count of the character. The given code counts 'G' in 'GeeksForGeeks'.

JavaScript
function countChar(str, char) 
{
  return str.split(char).length - 1;
}

console.log(countChar('GeeksForGeeks', 'G'));

Output
2

Using a for loop

The countChar() function counts how many times a given character (char) appears in a given string (str). It initializes a counter (count) to zero, iterates through each character in the string, increments the counter when it finds a match and returns the total count.

JavaScript
function countChar(str, char) {
    let count = 0;
    for (let i = 0; i < str.length; i++) {
        if (str[i] === char) {
            count++;
        }
    }
    return count;
}

console.log(countChar('GeeksForGeeks', 'G'));

Output
2

22. Write a Program to convert Celsius to Fahrenheit in JavaScript?

We are using the formula Fahrenheit=(Celsius×9/5)+32 to convert Celsius to Fahrenheit.

JavaScript
function celsiusToFahrenheit(celsius) {
    // find the conversion from Celsius to
    // Fahrenheit Fahrenheit=(Celsius×9/5)+32
    return (celsius * 9 / 5) + 32;

}

console.log(celsiusToFahrenheit(20));

Output
68

23. Write a Program to convert Fahrenheit to Celsius in JavaScript?

We are using the formula Celsius=(Farhrenheit-32)*5/9 to convert Fahrenheit to Celsius.

JavaScript
function fahrenheitToCelsius(fahrenheit) {
    return (fahrenheit - 32) * 5 / 9;
}

console.log(fahrenheitToCelsius(68));

Output
20

24. Write a Program to sort an array in Ascending Order in JavaScript?

The sortArray function sorts an array in ascending order using a nested loop. It compares each element with the others and swaps them if they are out of order. After iterating through the array, it returns the sorted array. For example, [5, 3, 8, 1] becomes [1, 3, 5, 8].

JavaScript
function sortArray(arr) {
    for (let i = 0; i < arr.length; i++) {
        for (let j = i + 1; j < arr.length; j++) {
            if (arr[i] > arr[j]) {
                // swap the elements
                let temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }
    }
    return arr;
}

console.log(sortArray([5, 3, 8, 1]));

Output
[ 1, 3, 5, 8 ]

25. write a Program to sort an array in Descending Order in JavaScript?

The code sorts an array in descending order using a bubble sort algorithm. It repeatedly swaps adjacent elements if they are in the wrong order then returning the sorted array.

JavaScript
function sortArrayDesc(arr) {
    let n = arr.length;
    for (let i = 0; i < n - 1; i++) {
        for (let j = 0; j < n - 1 - i; j++) {
            if (arr[j] < arr[j + 1]) {
                // Swap the elements
                let temp = arr[j];
                arr[j] = arr[j + 1];
                arr[j + 1] = temp;
            }
        }
    }
    return arr;
}

console.log(sortArrayDesc([5, 3, 8, 1]));

Output
[ 8, 5, 3, 1 ]

26. Write a Program to merge two arrays in JavaScript?

The mergeArrays function combines two arrays, arr1 and arr2, by using the concat method, which adds all elements of arr2 to the end of arr1. The function returns the merged array. In the given code [5, 6] and [7, 8] combine to form [5, 6, 7, 8].

JavaScript
function mergeArrays(arr1, arr2) {
    // this method merges all the elements 
    // of arr2 at the end of arr1.
    return arr1.concat(arr2);
}

console.log(mergeArrays([5, 6], [7, 8]));

Output
[ 5, 6, 7, 8 ]

27. Find the Intersection of Two Arrays in JavaScript?

In the given code set is used to store a unique values from arr2 then filter checks each element in arr1 to see if it is also exist in the set and keeping only those that matches. The output is an array of common elements from both arr1 and arr2.

JavaScript
function arrayIntersection(arr1, arr2) 
{
  const set2 = new Set(arr2); 
  return arr1.filter(value => set2.has(value));
}

console.log(arrayIntersection([5, 6, 7], [6, 7,8 ]));

Output
[ 6, 7 ]

28. Find the Union of Two Arrays in JavaScript?

The arrayUnion function merges two arrays (arr1 and arr2) using the spread operator, combines them into a single array, and removes duplicates using Set. It then returns the unique values as a new array. In the given code it outputs [1, 2, 3, 4].

JavaScript
function arrayUnion(arr1, arr2) {
    // merges two arrays then removes duplicates
    // and returns the output as a new array.
    return [...new Set([...arr1, ...arr2])];
}

console.log(arrayUnion([1, 2, 3], [2, 3, 4]));

Output
[ 1, 2, 3, 4 ]

29. Check if a Number is Even or Odd in JavaScript?

The function isEven(num) checks if a number is even by dividing it by 2. If the remainder (num % 2) is 0, the function returns true, means the number is even. Otherwise, it returns false. console.log(isEven(10)) prints true because 10 is even number.

JavaScript
function isEven(num) {
    return num % 2 === 0;
}
console.log(isEven(10)); 

Output
true

30. Write a Program to find the minimum value in an array in JavaScript?

Using for loop

The function findMin() takes an array and finds the smallest value. It starts by assuming the first element is the minimum value, then loops through the array, comparing each element. If a smaller value is found, it updates min. value Finally, it returns the smallest value which is -1.

JavaScript
function findMin(arr) {
    // Assume the first element is the minimum
    let min = arr[0];
    for (let i = 1; i < arr.length; i++) {
        if (arr[i] < min) {
            // Update min if a smaller value is found
            min = arr[i];
        }
    }
    return min;
}

console.log(findMin([5, 10, -1, 8]));

Output
-1

Using Math.min() method

This code defines a function findMin() that takes an array arr as input. It uses Math.min(...arr) to find and return the minimum value from the array by spreading its elements. In this code, it finds -1 as the smallest number in the array [5, 10, -1, 8].

JavaScript
function findMin(arr) 
{
  return Math.min(...arr);// find minimum value
}

console.log(findMin([5, 10, -1, 8]));

Output
-1

31. Check if a String Contains Another String in JavaScript?

The containsSubstring function checks if a substring exists within a given string. It uses indexOf to search for the substring inside the string. If found, it returns true otherwise, it returns false. In the code, it finds "For" in "GeeksForGeeks."

JavaScript
function containsSubstring(str, substring) {
//searches for the substring within str
return str.indexOf(substring) !== -1;
}

console.log(containsSubstring('GeeksForGeeks', 'For')); 

Output
true

32. Find the First Non-Repeated Character in a String in JavaScript?

This code finds the first non-repeated character in a string. It first counts how many times each character appears, then checks the string again to return the first character that appears only once. If no non-repeated character is found, it returns null, but in the given string 'F' is a non-repeated character so the output is 'F'.

JavaScript
function fun(str) {
    const charCount = {};

    // count the occurrences of each character
    for (let char of str) {
        charCount[char] = (charCount[char] || 0) + 1;
    }

    // find the first non-repeated character
    for (let char of str) {
        if (charCount[char] === 1) {
            return char;
        }
    }

    return null;
}

console.log(fun('GeeksForGeeks'));

Output
F

33. Find the Longest Word in a String in JavaScript?

This code finds the longest word in a given string. It splits the string into an array of words, then iterates through the array. For each word, it checks if its length is greater than the current longest word, if yes then it updating the longest word accordingly. Finally, it returns the longest word.

JavaScript
function longestWord(str) {
    //str is split into an array of words using the split method.
    const words = str.split(' ');
    let longest = '';

    for (let word of words) {
        if (word.length > longest.length) {
            longest = word;
        }
    }
    return longest;
}

console.log(longestWord('GeeksForGeeks is great'));

Output
GeeksForGeeks

34. Capitalize the First Letter of Each Word in a Sentence in JavaScript?

The function capitalizeFirstLetter() takes a sentence as input, splits it into an array of words, and capitalizes the first letter of each word. It uses a loop to modify each word and then joins the words back into a sentence, then returning the result.

JavaScript
function capitalizeFirstLetter(sentence) {
    const words = sentence.split(' ');
    for (let i = 0; i < words.length; i++) {
        words[i] = words[i].charAt(0).toUpperCase() + words[i].slice(1);
    }
    return words.join(' ');
}

console.log(capitalizeFirstLetter('hello geeks'));

Output
Hello Geeks

35. Convert an Array of Strings to Uppercase in JavaScript?

The toUpperCaseArray() function takes an array of strings as input. It creates a new array and converts each string to uppercase using a loop. The uppercase strings are stored in the new array, which is returned. The console logs prints the result for the input ['g', 'f', 'g'].

JavaScript
function toUpperCaseArray(arr) 
{
  const upperCaseArray = [];
  for (let i = 0; i < arr.length; i++) 
  {
    upperCaseArray[i] = arr[i].toUpperCase();
  }
  return upperCaseArray;
}

console.log(toUpperCaseArray(['g', 'f', 'g']));

Output
[ 'G', 'F', 'G' ]

Hard JavaScript Coding Questions and Qnswers

After mastering the basics and advanced topics, you're ready for the hard coding challenges. This section will test your problem-solving abilities with real-world scenarios, incorporating some logic of Data Structures and Algorithms (DSA) that will help you become a proficient developer.

36. Write a Program to reverse an array in JavaScript?

The reverseArray function takes an array arr as input and creates a new empty array called reversed[]. It then loops through arr backwards, pushing each element into reversed. Finally it returns the reversed array as output.

JavaScript
function reverseArray(arr) 
{
  const reversed = [];
  for (let i = arr.length - 1; i >= 0; i--) 
  {
    reversed.push(arr[i]);
  }
  return reversed;
}

console.log(reverseArray([5, 6, 7, 8]));

Output
[ 8, 7, 6, 5 ]

37. Get the last element of an array in JavaScript?

The function lastElement() takes an array arr as input and returns its last element. It does this by accessing the element at the index "arr.length - 1", which shows the last position in the array. The console logs prints the last element of the array [6, 2, 9, 5] which is 5.

JavaScript
function lastElement(arr) 
{
  return arr[arr.length - 1];
}

console.log(lastElement([6, 2, 9, 5]));

Output
5

38. Remove falsy Values from an array in JavaScript?

The falsy values in JavaScript are values which are false, 0, "" (empty string), null, undefined, and NaN.

The removeFalsyValues() function takes an array and filters out falsy values (0, false, ''). It creates an empty array answer[], then iterates through the input array. If an element is truthy, it adds it to answer[]. Then, it returns the array of truthy values

JavaScript
function removeFalsyValues(arr) {
    const answer = []; 
    for (let i = 0; i < arr.length; i++) {
        if (arr[i]) {
            answer[answer.length] = arr[i]; 
        }
    }
    return answer;
}

console.log(removeFalsyValues([0, 5, false, 6, '', 7]));

Output
[ 5, 6, 7 ]

39. Calculate the factorial of a number using recursion in JavaScript?

The factorial function calculates the factorial of a given number n. If n is 0 or 1, it returns 1. Otherwise, it multiplies n by the factorial of n - 1, effectively reducing the problem recursively until it reaches the base case. console.log(factorial(4)) outputs 24.

JavaScript
function factorial(n) 
{
  if (n === 0 || n === 1) return 1;
  return n * factorial(n - 1);
}

console.log(factorial(4)); 

Output
24

40. Create an object and print the property?

This code creates an object named "person" with two properties- name ("GFG") and age ( 25). The console.log(person.name) line prints the value of the name property, which is "GFG", as output.

JavaScript
let person = { name: "GFG", age: 25 };
console.log(person.name);

Output
GFG

41. Use the map function on an array in JavaScript?

The given creates an array called "numbers" containing the values 5, 6 and 7. It then uses the map function to create a new array "and", where each number is multiplied by 2. Then, it prints the new array, which outputs [10, 12, 14] to the console.

JavaScript
let numbers = [5, 6, 7];
let ans = numbers.map(function (num) {
    return num * 2;
});
console.log(ans);

Output
[ 10, 12, 14 ]

42. Write a Program to create a simple class in JavaScript?

This code defines a class called "Animals" with a constructor that initializes the animal's name. The speak method prints a message including the animal's name and a generic noise. A new instance of Animals, named dog, is created, and its speak method is called, so the output is "Dog makes a noise."

JavaScript
class Animals {
    constructor(name) {
        this.name = name;
    }
    speak() {
        console.log(`${this.name} makes a noise`);
    }
}
let dog = new Animals("Dog");
dog.speak();

Output
Dog makes a noise

43. Use JSON to parse and stringify data in JavaScript?

The code defines a JSON string jsonData containing a name. It uses JSON.parse() to convert the JSON string into a JavaScript object, storing it in parsedData. Finally, it logs the value of the name property from the object, which outputs "Geeks" to the console.

JavaScript
let jsonData = '{"name": "Geeks"}';
let parsedData = JSON.parse(jsonData);
console.log(parsedData.name);

Output
Geeks

44. Convert a string to an array of words in JavaScript?

This code defines a string sentence containing "Geeks For Geeks". The split() method divides the string into individual words using spaces as separators then creating an array called "wordsArray" . The resulting array, which contains ["Geeks", "For", "Geeks"], is an output.

JavaScript
let sentence = "Geeks For Geeks";
let wordsArray = sentence.split(" ");
console.log(wordsArray);

Output
[ 'Geeks', 'For', 'Geeks' ]

45. Write a switch statement code in JavaScript?

This code defines a variable course with the value "javascript". The switch statement checks the value of course. If it matches "javascript", it prints "This is a javascript course" to the console. If it does not match, the default case prints "Not a javascript course" .

JavaScript
let course = "javascript";
switch (course) {
    case "javascript":
        console.log("This is a javascript course");
        break;
    default:
        console.log("Not a javascript course");
}

Output
This is a javascript course

46. Check if Two Strings are Anagrams or not in JavaScript?

The areAnagrams() function checks if two strings are anagrams. First it compares their lengths if they are not same then it returns false. Then, it counts character frequencies for each string. Then, it compares these counts. If they match, the strings are anagrams(true), otherwisethey are not anagrams(false) .

JavaScript
function areAnagrams(str1, str2) {
    if (str1.length !== str2.length) {
        return false; 
    }

    let count1 = {};
    let count2 = {};

    // Count frequency of each character in str1
    for (let i = 0; i < str1.length; i++) {
        let char = str1[i];
        count1[char] = (count1[char] || 0) + 1;
    }

    // Count frequency of each character in str2
    for (let i = 0; i < str2.length; i++) {
        let char = str2[i];
        count2[char] = (count2[char] || 0) + 1;
    }

    // Compare the two frequency objects
    for (let char in count1) {
        if (count1[char] !== count2[char]) {
            return false; 
        }
    }

    return true; 
}
console.log(areAnagrams("listen", "silent")); 

Output
true

47. Find the maximum difference between two numbers in an array in JavaScript?

The maxDifference() function finds the maximum difference between elements in an array, where the larger element comes after the smaller one. It initializes min variable with the first element of an array, then iterates through the array, updating the maxDiff and the minimum value.

JavaScript
function maxDifference(arr) {
    let min = arr[0]
    let maxDiff = 0;

    for (let i = 1; i < arr.length; i++) {
        const diff = arr[i] - min;
        maxDiff = Math.max(maxDiff, diff);
        min = Math.min(min, arr[i]);
    }
    return maxDiff;
}

console.log(maxDifference([1, 2, 90, 10, 110]));

Output
109

48. Remove Duplicates from an Array in JavaScript?

The removeDuplicates function takes an array arr as input and creates a new array "uniqueArray" . It iterates through arr and checking if each element is already in uniqueArray or not. If not, it adds the element in uniqueArray. Finally, it returns uniqueArray which contains only unique values from the original array.

JavaScript
function removeDuplicates(arr) 
{
  const uniqueArray = [];
  for (let i = 0; i < arr.length; i++) 
  {
      if (!uniqueArray.includes(arr[i]))
      {
          uniqueArray.push(arr[i]);
      }
  }
  return uniqueArray;
}

console.log(removeDuplicates([5, 2, 5, 6, 6, 7])); 

Output
[ 5, 2, 6, 7 ]

49. Count Vowels in a String in JavaScript?

The countVowels function counts the number of vowels in a given string. It initializes a count variable as 0 and iterates through each character of the string. If a character is found in the vowels string (which includes both lowercase and uppercase vowels), it increments the count variable. Atlast, it returns the total count.

JavaScript
function countVowels(str) {
    let count = 0;
    // Include both lowercase and uppercase vowels
    const vowels = 'aeiouAEIOU'; 
    for (let i = 0; i < str.length; i++) {
        if (vowels.includes(str[i])) {
            count++;
        }
    }

    return count;
}

console.log(countVowels("hello geek")); 

Output
4

50. Get Unique Characters from a String in JavaScript?

The uniqueCharacters function takes a string as input and finds unique characters. It initializes an empty array, uniqueChars, and iterates through the string. If a character is not already in uniqueChars, it adds it. Finally, it joins the unique characters into a string and returns the string.

JavaScript
function uniqueCharacters(str) {
    const uniqueChars = [];
    for (let i = 0; i < str.length; i++) {
        if (!uniqueChars.includes(str[i])) {
            uniqueChars.push(str[i]);
        }
    }
    return uniqueChars.join('');
}

console.log(uniqueCharacters("geeksforgeeks")); 

Output
geksfor

Next Article
Introduction to JavaScript

P

pooja162003yadav
Improve
Article Tags :
  • JavaScript
  • Web Technologies
  • Web-Tech Blogs

Similar Reads

    JavaScript Tutorial
    JavaScript is a programming language used to create dynamic content for websites. It is a lightweight, cross-platform, and single-threaded programming language. It's an interpreted language that executes code line by line, providing more flexibility.Client Side: On the client side, JavaScript works
    11 min read

    JavaScript Basics

    Introduction to JavaScript
    JavaScript is a versatile, dynamically typed programming language that brings life to web pages by making them interactive. It is used for building interactive web applications, supports both client-side and server-side development, and integrates seamlessly with HTML, CSS, and a rich standard libra
    4 min read
    JavaScript Versions
    JavaScript is a popular programming language used by developers all over the world. It’s a lightweight and easy-to-learn language that can run on both the client-side (in your browser) and the server-side (on the server). JavaScript was created in 1995 by Brendan Eich.In 1997, JavaScript became a st
    2 min read
    How to Add JavaScript in HTML Document?
    To add JavaScript in HTML document, several methods can be used. These methods include embedding JavaScript directly within the HTML file or linking an external JavaScript file.Inline JavaScriptYou can write JavaScript code directly inside the HTML element using the onclick, onmouseover, or other ev
    3 min read
    JavaScript Syntax
    JavaScript syntax refers to the rules and conventions dictating how code is structured and arranged within the JavaScript programming language. This includes statements, expressions, variables, functions, operators, and control flow constructs.Syntaxconsole.log("Basic Print method in JavaScript");Ja
    6 min read
    JavaScript Output
    JavaScript provides different methods to display output, such as console.log(), alert(), document.write(), and manipulating HTML elements directly. Each method has its specific use cases, whether for debugging, user notifications, or dynamically updating web content. Here we will explore various Jav
    4 min read
    JavaScript Comments
    Comments help explain code (they are not executed and hence do not have any logic implementation). We can also use them to temporarily disable parts of your code.1. Single Line CommentsA single-line comment in JavaScript is denoted by two forward slashes (//), JavaScript// A single line comment cons
    2 min read

    JS Variables & Datatypes

    Variables and Datatypes in JavaScript
    Variables and data types are foundational concepts in programming, serving as the building blocks for storing and manipulating information within a program. In JavaScript, getting a good grasp of these concepts is important for writing code that works well and is easy to understand.Data TypesVariabl
    6 min read
    Global and Local variables in JavaScript
    In JavaScript, understanding the difference between global and local variables is important for writing clean, maintainable, and error-free code. Variables can be declared with different scopes, affecting where and how they can be accessed. Global VariablesGlobal variables in JavaScript are those de
    4 min read
    JavaScript Let
    The let keyword is a modern way to declare variables in JavaScript and was introduced in ECMAScript 6 (ES6). Unlike var, let provides block-level scoping. This behaviour helps developers avoid unintended issues caused by variable hoisting and scope leakage that are common with var.Syntaxlet variable
    6 min read
    JavaScript const
    The const keyword in JavaScript is a modern way to declare variables, introduced in (ES6). It is used to declare variables whose values need to remain constant throughout the lifetime of the application.const is block-scoped, similar to let, and is useful for ensuring immutability in your code. Unli
    5 min read
    JavaScript Var Statement
    The var keyword is used to declare variables in JavaScript. It has been part of the language since its inception. When a variable is declared using var, it is function-scoped or globally-scoped, depending on where it is declared.Syntaxvar variable = value;It declares a variable using var, assigns it
    7 min read

    JS Operators

    JavaScript Operators
    JavaScript operators are symbols or keywords used to perform operations on values and variables. They are the building blocks of JavaScript expressions and can manipulate data in various ways.There are various operators supported by JavaScript:1. JavaScript Arithmetic OperatorsArithmetic Operators p
    5 min read
    Operator precedence in JavaScript
    Operator precedence refers to the priority given to operators while parsing a statement that has more than one operator performing operations in it. Operators with higher priorities are resolved first. But as one goes down the list, the priority decreases and hence their resolution. ( * ) and ( / )
    2 min read
    JavaScript Arithmetic Operators
    JavaScript Arithmetic Operators are the operator that operate upon the numerical values and return a numerical value. Addition (+) OperatorThe addition operator takes two numerical operands and gives their numerical sum. It also concatenates two strings or numbers.JavaScript// Number + Number =>
    5 min read
    JavaScript Assignment Operators
    Assignment operators are used to assign values to variables in JavaScript.JavaScript// Lets take some variables x = 10 y = 20 x = y ; console.log(x); console.log(y); Output20 20 More Assignment OperatorsThere are so many assignment operators as shown in the table with the description.OPERATOR NAMESH
    5 min read
    JavaScript Comparison Operators
    JavaScript comparison operators are essential tools for checking conditions and making decisions in your code. 1. Equality Operator (==) The Equality operator is used to compare the equality of two operands. JavaScript// Illustration of (==) operator let x = 5; let y = '5'; // Checking of operands c
    5 min read
    JavaScript Logical Operators
    Logical operators in JavaScript are used to perform logical operations on values and return either true or false. These operators are commonly used in decision-making statements like if or while loops to control the flow of execution based on conditions.In JavaScript, there are basically three types
    5 min read
    JavaScript Bitwise Operators
    In JavaScript, a number is stored as a 64-bit floating-point number but bitwise operations are performed on a 32-bit binary number. To perform a bit-operation, JavaScript converts the number into a 32-bit binary number (signed) and performs the operation and converts back the result to a 64-bit numb
    5 min read
    JavaScript Ternary Operator
    The Ternary Operator in JavaScript is a conditional operator that evaluates a condition and returns one of two values based on whether the condition is true or false. It simplifies decision-making in code, making it more concise and readable. Syntaxcondition ? trueExpression : falseExpressionConditi
    4 min read
    JavaScript Comma Operator
    JavaScript Comma Operator mainly evaluates its operands from left to right sequentially and returns the value of the rightmost operand. JavaScriptlet x = (1, 2, 3); console.log(x); Output3 Here is another example to show that all expressions are actually executed.JavaScriptlet a = 1, b = 2, c = 3; l
    2 min read
    JavaScript Unary Operators
    JavaScript Unary Operators work on a single operand and perform various operations, like incrementing/decrementing, evaluating data type, negation of a value, etc.Unary Plus (+) OperatorThe unary plus (+) converts an operand into a number, if possible. It is commonly used to ensure numerical operati
    4 min read
    JavaScript in and instanceof operators
    JavaScript Relational Operators are used to compare their operands and determine the relationship between them. They return a Boolean value (true or false) based on the comparison result.JavaScript in OperatorThe in-operator in JavaScript checks if a specified property exists in an object or if an e
    3 min read
    JavaScript String Operators
    JavaScript String Operators are used to manipulate and perform operations on strings. There are two operators which are used to modify strings in JavaScript. These operators help us to join one string to another string.1. Concatenate OperatorConcatenate Operator in JavaScript combines strings using
    3 min read

    JS Statements

    JavaScript Statements
    JavaScript statements are programming instructions that a computer executes. A computer program is essentially a list of these "instructions" designed to perform tasks. In a programming language, such instructions are called statements.Types of Statements1. Variable Declarations (var, let, const)In
    4 min read
    JavaScript if-else
    JavaScript conditional statements allow programs to make decisions based on specific conditions. They control the flow of execution, enabling different actions for different scenarios.JavaScript if-statementIt is a conditional statement that determines whether a specific action or block of code will
    3 min read
    JavaScript switch Statement
    The switch statement evaluates an expression and executes code based on matching cases. It’s an efficient alternative to multiple if-else statements, improving readability when handling many conditions.Syntaxswitch (expression) { case value1: // Code block 1 break; case value2: // Code block 2 break
    4 min read
    JavaScript Break Statement
    JavaScript break statement is used to terminate the execution of the loop or the switch statement when the condition is true.In Switch Block (To come out of the block)JavaScriptconst fruit = "Mango"; switch (fruit) { case "Apple": console.log("Apple is healthy."); break; case "Mango": console.log("M
    2 min read
    JavaScript Continue Statement
    The continue statement in JavaScript is used to break the iteration of the loop and follow with the next iteration. Example of continue to print only odd Numbers smaller than 10JavaScriptfor (let i = 0; i < 10; i++) { if (i % 2 == 0) continue; console.log(i); }Output1 3 5 7 9 How Does Continue Wo
    1 min read
    JavaScript Return Statement
    The return statement in JavaScript is used to end the execution of a function and return a value to the caller. It is used to control function behaviour and optimise code execution.Syntaxreturn [expression]Expression Evaluation: The expression inside the brackets is evaluated and returned to the cal
    4 min read

    JS Loops

    JavaScript Loops
    Loops in JavaScript are used to reduce repetitive tasks by repeatedly executing a block of code as long as a specified condition is true. This makes code more concise and efficient.Suppose we want to print 'Hello World' five times. Instead of manually writing the print statement repeatedly, we can u
    3 min read
    JavaScript For Loop
    JavaScript for loop is a control flow statement that allows code to be executed repeatedly based on a condition. It consists of three parts: initialization, condition, and increment/decrement. Syntaxfor (statement 1 ; statement 2 ; statement 3){ code here...}Statement 1: It is the initialization of
    4 min read
    JavaScript While Loop
    The while loop executes a block of code as long as a specified condition is true. In JavaScript, this loop evaluates the condition before each iteration and continues running as long as the condition remains true.Syntaxwhile (condition) { Code block to be executed}Here's an example that prints from
    3 min read
    JavaScript For In Loop
    The JavaScript for...in loop iterates over the properties of an object. It allows you to access each key or property name of an object.JavaScriptconst car = { make: "Toyota", model: "Corolla", year: 2020 }; for (let key in car) { console.log(`${key}: ${car[key]}`); }Outputmake: Toyota model: Corolla
    3 min read
    JavaScript for...of Loop
    The JavaScript for...of loop is a modern, iteration statement introduced in ECMAScript 2015 (ES6). Works for iterable objects such as arrays, strings, maps, sets, and more. It is better choice for traversing items of iterables compared to traditional for and for in loops, especially when we have bre
    3 min read
    JavaScript do...while Loop
    A do...while loop in JavaScript is a control structure where the code executes repeatedly based on a given boolean condition. It's similar to a repeating if statement. One key difference is that a do...while loop guarantees that the code block will execute at least once, regardless of whether the co
    4 min read

    JS Perfomance & Debugging

    JavaScript | Performance
    JavaScript is a fundamental part of nearly every web application and web-based software. JavaScript’s client-side scripting capabilities can make applications more dynamic and interactive, but it also increases the chance of inefficiencies in code. Poorly written JavaScript can degrade user experien
    4 min read
    Debugging in JavaScript
    Debugging is the process of testing, finding, and reducing bugs (errors) in computer programs. It involves:Identifying errors (syntax, runtime, or logical errors).Using debugging tools to analyze code execution.Implementing fixes and verifying correctness.Types of Errors in JavaScriptSyntax Errors:
    4 min read
    JavaScript Errors Throw and Try to Catch
    JavaScript uses throw to create custom errors and try...catch to handle them, preventing the program from crashing. The finally block ensures that code runs after error handling, regardless of success or failure.throw: Creates custom errors and stops code execution.try...catch: Catches and handles e
    2 min read

    JS Object

    Objects in Javascript
    An object in JavaScript is a data structure used to store related data collections. It stores data as key-value pairs, where each key is a unique identifier for the associated value. Objects are dynamic, which means the properties can be added, modified, or deleted at runtime.There are two primary w
    4 min read
    Introduction to Object Oriented Programming in JavaScript
    As JavaScript is widely used in Web Development, in this article we will explore some of the Object Oriented mechanisms supported by JavaScript to get the most out of it. Some of the common interview questions in JavaScript on OOPS include: How is Object-Oriented Programming implemented in JavaScrip
    7 min read
    JavaScript Objects
    In our previous article on Introduction to Object Oriented Programming in JavaScript we have seen all the common OOP terminology and got to know how they do or don't exist in JavaScript. In this article, objects are discussed in detail.Creating Objects:In JavaScript, Objects can be created using two
    6 min read
    Creating objects in JavaScript
    An object in JavaScript is a collection of key-value pairs, where keys are strings (properties) and values can be any data type. Objects can be created using object literals, constructors, or classes. Properties are defined with key-value pairs, and methods are functions defined within the object, e
    5 min read
    JavaScript JSON Objects
    JSON (JavaScript Object Notation) is a handy way to share data. It's easy for both people and computers to understand. In JavaScript, JSON helps organize data into simple objects. Let's explore how JSON works and why it's so useful for exchanging information.const jsonData = { "key1" : "value1", ...
    3 min read
    JavaScript Object Reference
    JavaScript Objects are the most important data type and form the building blocks for modern JavaScript. The "Object" class represents the JavaScript data types. Objects are quite different from JavaScript’s primitive data types (Number, String, Boolean, null, undefined, and symbol). It is used to st
    4 min read

    JS Function

    Functions in JavaScript
    Functions in JavaScript are reusable blocks of code designed to perform specific tasks. They allow you to organize, reuse, and modularize code. It can take inputs, perform actions, and return outputs.JavaScriptfunction sum(x, y) { return x + y; } console.log(sum(6, 9)); // output: 15Function Syntax
    4 min read
    How to write a function in JavaScript ?
    JavaScript functions serve as reusable blocks of code that can be called from anywhere within your application. They eliminate the need to repeat the same code, promoting code reusability and modularity. By breaking down a large program into smaller, manageable functions, programmers can enhance cod
    4 min read
    JavaScript Function Call
    The call() method is a predefined JavaScript method. It can be used to invoke (call) a method with an owner object as an argument (parameter). This allows borrowing methods from other objects, executing them within a different context, overriding the default value, and passing arguments. Syntax: cal
    2 min read
    Different ways of writing functions in JavaScript
    A JavaScript function is a block of code designed to perform a specific task. Functions are only executed when they are called (or "invoked"). JavaScript provides different ways to define functions, each with its own syntax and use case.Below are the ways of writing functions in JavaScript:Table of
    3 min read
    Difference between Methods and Functions in JavaScript
    Grasping the difference between methods and functions in JavaScript is essential for developers at all levels. While both are fundamental to writing effective code, they serve different purposes and are used in various contexts. This article breaks down the key distinctions between methods and funct
    3 min read
    Explain the Different Function States in JavaScript
    In JavaScript, we can create functions in many different ways according to the need for the specific operation. For example, sometimes we need asynchronous functions or synchronous functions.  In this article, we will discuss the difference between the function Person( ) { }, let person = Person ( )
    3 min read
    JavaScript Function Complete Reference
    A JavaScript function is a set of statements that takes inputs, performs specific computations, and produces outputs. Essentially, a function performs tasks or computations and then returns the result to the user.Syntax:function functionName(Parameter1, Parameter2, ..) { // Function body}Example: Be
    3 min read

    JS Array

    JavaScript Arrays
    In JavaScript, an array is an ordered list of values. Each value, known as an element, is assigned a numeric position in the array called its index. The indexing starts at 0, so the first element is at position 0, the second at position 1, and so on. Arrays can hold any type of data—such as numbers,
    7 min read
    JavaScript Array Methods
    To help you perform common tasks efficiently, JavaScript provides a wide variety of array methods. These methods allow you to add, remove, find, and transform array elements with ease.Javascript Arrays Methods1. JavaScript Array length The length property of an array returns the number of elements i
    7 min read
    Best-Known JavaScript Array Methods
    An array is a special variable in all programming languages used to store multiple elements. JavaScript array come with built-in methods that every developer should know how to use. These methods help in adding, removing, iterating, or manipulating data as per requirements.There are some Basic JavaS
    6 min read
    Important Array Methods of JavaScript
    JavaScript arrays are powerful tools for managing collections of data. They come with a wide range of built-in methods that allow developers to manipulate, transform, and interact with array elements.Some of the most important array methods in JavaScript areTable of Content1. JavaScript push() Metho
    7 min read
    JavaScript Array Reference
    JavaScript Array is used to store multiple elements in a single variable. It can hold various data types, including numbers, strings, objects, and even other arrays. It is often used when we want to store a list of elements and access them by a single variable.Syntax:const arr = ["Item1", "Item2", "
    4 min read
`; $(commentSectionTemplate).insertBefore(".article--recommended"); } loadComments(); }); }); function loadComments() { if ($("iframe[id*='discuss-iframe']").length top_of_element && top_of_screen articleRecommendedTop && top_of_screen articleRecommendedBottom)) { if (!isfollowingApiCall) { isfollowingApiCall = true; setTimeout(function(){ if (loginData && loginData.isLoggedIn) { if (loginData.userName !== $('#followAuthor').val()) { is_following(); } else { $('.profileCard-profile-picture').css('background-color', '#E7E7E7'); } } else { $('.follow-btn').removeClass('hideIt'); } }, 3000); } } }); } $(".accordion-header").click(function() { var arrowIcon = $(this).find('.bottom-arrow-icon'); arrowIcon.toggleClass('rotate180'); }); }); window.isReportArticle = false; function report_article(){ if (!loginData || !loginData.isLoggedIn) { const loginModalButton = $('.login-modal-btn') if (loginModalButton.length) { loginModalButton.click(); } return; } if(!window.isReportArticle){ //to add loader $('.report-loader').addClass('spinner'); jQuery('#report_modal_content').load(gfgSiteUrl+'wp-content/themes/iconic-one/report-modal.php', { PRACTICE_API_URL: practiceAPIURL, PRACTICE_URL:practiceURL },function(responseTxt, statusTxt, xhr){ if(statusTxt == "error"){ alert("Error: " + xhr.status + ": " + xhr.statusText); } }); }else{ window.scrollTo({ top: 0, behavior: 'smooth' }); $("#report_modal_content").show(); } } function closeShareModal() { const shareOption = document.querySelector('[data-gfg-action="share-article"]'); shareOption.classList.remove("hover_share_menu"); let shareModal = document.querySelector(".hover__share-modal-container"); shareModal && shareModal.remove(); } function openShareModal() { closeShareModal(); // Remove existing modal if any let shareModal = document.querySelector(".three_dot_dropdown_share"); shareModal.appendChild(Object.assign(document.createElement("div"), { className: "hover__share-modal-container" })); document.querySelector(".hover__share-modal-container").append( Object.assign(document.createElement('div'), { className: "share__modal" }), ); document.querySelector(".share__modal").append(Object.assign(document.createElement('h1'), { className: "share__modal-heading" }, { textContent: "Share to" })); const socialOptions = ["LinkedIn", "WhatsApp","Twitter", "Copy Link"]; socialOptions.forEach((socialOption) => { const socialContainer = Object.assign(document.createElement('div'), { className: "social__container" }); const icon = Object.assign(document.createElement("div"), { className: `share__icon share__${socialOption.split(" ").join("")}-icon` }); const socialText = Object.assign(document.createElement("span"), { className: "share__option-text" }, { textContent: `${socialOption}` }); const shareLink = (socialOption === "Copy Link") ? Object.assign(document.createElement('div'), { role: "button", className: "link-container CopyLink" }) : Object.assign(document.createElement('a'), { className: "link-container" }); if (socialOption === "LinkedIn") { shareLink.setAttribute('href', `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`); shareLink.setAttribute('target', '_blank'); } if (socialOption === "WhatsApp") { shareLink.setAttribute('href', `https://api.whatsapp.com/send?text=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } if (socialOption === "Twitter") { shareLink.setAttribute('href', `https://twitter.com/intent/tweet?url=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } shareLink.append(icon, socialText); socialContainer.append(shareLink); document.querySelector(".share__modal").appendChild(socialContainer); //adding copy url functionality if(socialOption === "Copy Link") { shareLink.addEventListener("click", function() { var tempInput = document.createElement("input"); tempInput.value = window.location.href; document.body.appendChild(tempInput); tempInput.select(); tempInput.setSelectionRange(0, 99999); // For mobile devices document.execCommand('copy'); document.body.removeChild(tempInput); this.querySelector(".share__option-text").textContent = "Copied" }) } }); // document.querySelector(".hover__share-modal-container").addEventListener("mouseover", () => document.querySelector('[data-gfg-action="share-article"]').classList.add("hover_share_menu")); } function toggleLikeElementVisibility(selector, show) { document.querySelector(`.${selector}`).style.display = show ? "block" : "none"; } function closeKebabMenu(){ document.getElementById("myDropdown").classList.toggle("show"); }
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • DSA Tutorial
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences