Amazing list of resources for Javascript Interview
Tags: beginners, javascript, webdev, node
Published: 2020-02-27 10:30:17

---
title: Amazing list of resources for Javascript Interview
published: true
description: Best list of selected resources to crack the Javascript Interview
tags: beginners, javascript, webdev, node
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/n9sax4dyg0h5ydhupnzk.png
---

Are you preparing for a Javascript interview?. Then this list may help you to crack the interview.

In the past 4 years I have interviewed for around 20 companies and created a list of things that these companies often ask.

I agree, you agree that Javascript interview is a bit different than the other software engineer interviews.

So I have separated the preparation in three different parts.

1. Data Structures and Algorithms (To test the problem solving skills).
2. Web development and Computer science stuffs (To test the computer science skills).
3. Javascript specific questions (To test the grip on the language).


* Understanding javascript programming language in order to use it.

1.  [ESNext (Javascript with latest stuffs)](https://learnersbucket.com/tutorials/es6/es6-intro/).


* Data Structures in javascript

1. [Array](https://learnersbucket.com/tutorials/array/javascript-array-complete-reference/)
2. [Object.](https://learnersbucket.com/tutorials/data-structures/javascript-objects-complete-reference/)
3. [Strings.](https://learnersbucket.com/tutorials/data-structures/javascript-string/)
4. [Stack.](https://learnersbucket.com/tutorials/algorithms/stack/)
5. [Queue.](https://learnersbucket.com/tutorials/algorithms/queue-implementation-in-javascript/)
6. [List.](https://learnersbucket.com/tutorials/data-structures/list-data-structure-in-javascript/)
7. [Linked List](https://learnersbucket.com/tutorials/data-structures/linked-list-implementation-in-javascript/)
8. [Stack using linked list](https://learnersbucket.com/tutorials/data-structures/implement-stack-using-linked-list/)
9. [Queue using linked list](https://learnersbucket.com/tutorials/data-structures/implement-queue-using-linked-list/)
10. [Doubly Linked list](https://learnersbucket.com/tutorials/data-structures/doubly-linked-list-implementation-in-javascript/)
11. [Deque](https://learnersbucket.com/tutorials/data-structures/implement-deque-data-structure-in-javascript/)
12. [Deque using doubly linked list](https://learnersbucket.com/tutorials/data-structures/deque-data-structure-with-doubly-linked-list/)
13. [Circular linked list](https://learnersbucket.com/tutorials/data-structures/circular-linked-list-implementation-in-javascript/)
14. [Priority Queue](https://learnersbucket.com/tutorials/data-structures/priority-queue-implementation-in-javascript/)
15. [Circular Doubly linked list](https://learnersbucket.com/tutorials/data-structures/circular-doubly-linked-list-in-javascript/)
16. [Binary Search Tree](https://learnersbucket.com/tutorials/data-structures/tree-data-structure-in-javascript/)
17. Others I am writing currently and will be added soon.


* Algorithms in Javascript

1. [Given an unsorted array of integers find a pair with given sum in it](https://learnersbucket.com/examples/algorithms/given-an-unsorted-array-of-integers-find-a-pair-with-given-sum-in-it/)
2. [Right circular rotation on an array of integers](https://learnersbucket.com/examples/algorithms/right-circular-rotation-on-an-array-of-integers/)
3. [Left circular rotation on array of integers](https://learnersbucket.com/examples/algorithms/left-circular-rotation-on-array-of-integers)
4. [Convert decimal to binary, octal or hexa in javascript](https://learnersbucket.com/examples/algorithms/the-base-converter-algorithm)
5. [Count number of sub-string occurrence in a string](https://learnersbucket.com/examples/algorithms/count-number-of-sub-string-occurrence-in-a-string)
6. [Swap two numbers without temp variables](https://learnersbucket.com/examples/algorithms/swap-two-numbers-without-temp-variables)
7. [Palindrome string](https://learnersbucket.com/examples/algorithms/palindrome-string)
8. [Program to check balanced parentheses](https://learnersbucket.com/examples/algorithms/balanced-parentheses)
9. [Find the biggest perfect square in an array](https://learnersbucket.com/examples/algorithms/find-the-biggest-perfect-square-in-an-array)
10. [Print all subarrays with a given sum k in an array](https://learnersbucket.com/examples/algorithms/subarrays-with-a-given-sum-k-in-an-array)
11. [Find digital root of a given number](https://learnersbucket.com/examples/algorithms/find-digital-root-of-a-number)
12. [Buggy Calculator](https://learnersbucket.com/examples/algorithms/buggy-calculator)
13. [Form the smallest possible number from the given number](https://learnersbucket.com/examples/algorithms/form-the-smallest-possible-number-from-the-given-number)
14. [Find missing alphabets to make a string panagram](https://learnersbucket.com/examples/algorithms/find-missing-alphabets-to-make-a-string-panagram)
15. [Check if string has duplicate letters](https://learnersbucket.com/examples/algorithms/check-if-string-has-duplicate-letters)
16. [Difference between square of sum of numbers and sum of square of numbers.](https://learnersbucket.com/examples/algorithms/difference-between-square-of-sum-of-numbers-and-sum-of-square-of-numbers)
17. [Converting string to jadencase](https://learnersbucket.com/examples/algorithms/converting-string-to-jadencase)
18. [Check if given number is armstrong in javascript](https://learnersbucket.com/examples/algorithms/check-if-given-number-is-armstrong-in-javascript)
19. [Find all the armstrong number between two numbers](https://learnersbucket.com/examples/algorithms/find-all-the-armstrong-number-between-two-numbers)
20. [Print matrix in zigzag format](https://learnersbucket.com/examples/algorithms/print-matrix-in-zigzag-format)
21. [Print matrix in L pattern](https://learnersbucket.com/examples/algorithms/print-matrix-in-l-pattern)
22. [Program to check the prime number](https://learnersbucket.com/examples/algorithms/algorithm-to-check-the-prime-number)
23. [Find the largest prime factor](https://learnersbucket.com/examples/algorithms/find-the-largest-prime-factor)
24. [Factorial program in javascript](https://learnersbucket.com/examples/algorithms/factorial-program-in-javascript)
25. [Convert Roman numeral to an integer](https://learnersbucket.com/examples/algorithms/convert-roman-numeral-to-an-integer)
26. [Print all the unique 2 digit combinations of given numbers](https://learnersbucket.com/examples/algorithms/print-all-the-unique-2-digit-combinations-of-given-numbers)
27. [Program to find the nth Fibonacci in javascript](https://learnersbucket.com/examples/algorithms/program-to-find-the-nth-fibonacci-number)
28. [Program to print the Collatz sequence in javascript.](https://learnersbucket.com/examples/algorithms/program-to-print-the-collatz-sequence-in-javascript)
29. [Maximum Collatz sequence under 1000000](https://learnersbucket.com/examples/algorithms/maximum-collatz-sequence-under-1000000)
30. [Check if an array is palindrome in javascript](https://learnersbucket.com/examples/algorithms/palindrome-in-javascript)
31. [Sort a stack using another stack](https://learnersbucket.com/examples/algorithms/sort-a-stack-using-another-stack)
32. [Linear search algorithm in javascript](https://learnersbucket.com/examples/algorithms/linear-search)
33. [Check if string contains a substring in javascript](https://learnersbucket.com/examples/algorithms/javascript-string-contains-substring)
34. [Program to check if a subarray with 0 sum exits or not](https://learnersbucket.com/examples/algorithms/program-to-check-if-a-subarray-with-0-sum-exits-or-not)
35. [Find the correct position to insert an element in the array](https://learnersbucket.com/examples/algorithms/find-the-correct-position-to-insert-an-element-in-the-array)
36. [Check if two string are anagram of each other](https://learnersbucket.com/examples/algorithms/check-if-two-string-are-anagram-of-each-other)
37. [Minimum characters to delete to make string anagram](https://learnersbucket.com/examples/algorithms/minimum-characters-to-delete-to-make-strings-anagram)
38. [Find the maximum sum of products of two arrays.](https://learnersbucket.com/examples/algorithms/find-the-maximum-sum-of-products-of-two-arrays)
39. [Program to add two binary numbers](https://learnersbucket.com/examples/algorithms/program-to-add-two-binary-numbers)
40. [Find distinct ways to climb the stairs in javascript.](https://learnersbucket.com/examples/algorithms/find-distinct-ways-to-climb-the-stairs-in-javascript)
41. [Program to reverse a queue](https://learnersbucket.com/examples/algorithms/program-to-reverse-a-queue)
42. [Selection sort in javascript](https://learnersbucket.com/examples/algorithms/selection-sort-in-javascript)
43. [Reverse a stack using recursion.](https://learnersbucket.com/examples/algorithms/reverse-a-stack-using-recursion)
44. [Caesar Cipher in javascript](https://learnersbucket.com/examples/algorithms/caesar-cipher-in-javascript)
45. [Program to find the GCD of two numbers in javascript.](https://learnersbucket.com/examples/algorithms/program-to-find-the-gcd-of-two-numbers-in-javascript)
46. [Find the LCM of two numbers in javascript](https://learnersbucket.com/examples/algorithms/find-the-lcm-of-two-numbers-in-javascript)
47. [FizzBuzz program in javascript](https://learnersbucket.com/examples/algorithms/fizzbuzz-program-in-javascript)
48. [Program to print all the prime numbers from 1 to 100.](https://learnersbucket.com/examples/algorithms/program-to-print-all-the-prime-numbers-from-1-to-n)
49. [Count all substrings having character k.](https://learnersbucket.com/examples/algorithms/count-all-substrings-having-character-k)
50. [Number of subarrays with given sum k](https://learnersbucket.com/examples/algorithms/number-of-subarrays-with-given-sum-k)
51. [Reverse a string using recursion](https://learnersbucket.com/examples/algorithms/reverse-a-string-using-recursion)
52. [Reverse a string using stack](https://learnersbucket.com/examples/algorithms/reverse-a-string-using-stack)
53. [How to reverse an array in javascript](https://learnersbucket.com/examples/algorithms/how-to-reverse-an-array-in-javascript)
54. [Absolute difference between diagonals of matrix](https://learnersbucket.com/examples/algorithms/absolute-difference-between-diagonals-of-matrix)
55. [Program to print the chess board pattern in javascript](https://learnersbucket.com/examples/algorithms/program-to-print-the-chess-board-pattern-in-javascript)
56. [Program to print the pyramid pattern](https://learnersbucket.com/examples/algorithms/program-to-print-the-pyramid-pattern)
57. [Program to print the diamond pattern](https://learnersbucket.com/examples/algorithms/program-to-print-the-diamond-pattern)
58. [Program to print the floyd triangle](https://learnersbucket.com/examples/algorithms/program-to-print-the-floyd-triangle)
59. [Program to print the pascal triangle patterns](https://learnersbucket.com/examples/algorithms/program-to-print-the-pascal-triangle-patterns)
60. [Algorithm to merge two sorted array](https://learnersbucket.com/examples/algorithms/algorithm-to-merge-two-sorted-array)
61. [Program to print all the permutation of string](https://learnersbucket.com/examples/algorithms/program-to-print-all-the-permutation-of-string)
62. [Implement a Stack using Queue](https://learnersbucket.com/examples/algorithms/implement-a-stack-using-queue)
63. [Bubble sort algorithm in javascript](https://learnersbucket.com/examples/algorithms/bubble-sort-algorithm-in-javascript)
64. [Recursive Bubble sort algorithm](https://learnersbucket.com/examples/algorithms/recursive-bubble-sort-algorithm)
65. [Insertion sort algorithm in javascript](https://learnersbucket.com/examples/algorithms/insertion-sort-algorithm-in-javascript)
66. [Recursive Insertion Sort Algorithm](https://learnersbucket.com/examples/algorithms/recursive-insertion-sort-algorithm)
67. [Find the maximum depth of nested parentheses in a string](https://learnersbucket.com/examples/algorithms/maximum-depth-of-nested-parentheses-in-a-string)
68. [Sorting a linked list](https://learnersbucket.com/examples/algorithms/sorting-a-linked-list)
69. [Learn how to implement two stack with an array](https://learnersbucket.com/examples/algorithms/learn-how-to-implement-two-stack-with-an-array)
70. [Program to reverse a linked list using a stack](https://learnersbucket.com/examples/algorithms/program-to-reverse-a-linked-list-using-a-stack)
71. [Learn how to reverse a linked list](https://learnersbucket.com/examples/algorithms/learn-how-to-reverse-a-linked-list)
72. [Learn how to reverse a linked list recursively](https://learnersbucket.com/examples/algorithms/learn-how-to-reverse-a-linked-list-recursively)
73. [Program to check if two stacks are equal](https://learnersbucket.com/examples/algorithms/program-to-check-if-two-stacks-are-equal)
74. [Program to print the next greater element in the array](https://learnersbucket.com/examples/algorithms/program-to-print-the-next-greater-element-in-the-array)
75. [Program to check palindrome linked list](https://learnersbucket.com/examples/algorithms/program-to-check-palindrome-linked-list)
76. [Program to find an element in array such that sum of left array is equal to sum of right array](https://learnersbucket.com/examples/algorithms/program-to-find-an-element-in-array-such-that-sum-of-left-array-is-equal-to-sum-of-right-array)
77. [Alternatively merge two different arrays](https://learnersbucket.com/examples/algorithms/alternatively-merge-two-different-arrays)
78. [Program to find the duplicate element in the linked list](https://learnersbucket.com/examples/algorithms/program-to-find-the-duplicate-element-in-the-linked-list)
79. [Sum and Product of all the nodes in the linked list which are less than k](https://learnersbucket.com/examples/algorithms/sum-and-product-of-all-the-nodes-in-the-linked-list-which-are-less-than-k)
80. [Print the last k nodes of the linked list in reverse.](https://learnersbucket.com/examples/algorithms/print-the-last-k-nodes-of-the-linked-list-in-reverse)
81. [Decode a string (encoded with number followed by string)](https://learnersbucket.com/examples/algorithms/decode-a-string-encoded-with-number-followed-by-string)
82. [Program to sort only positive numbers of the array](https://learnersbucket.com/examples/algorithms/program-to-sort-only-positive-numbers-of-the-array)
83. [Count number of sub string recursively](https://learnersbucket.com/examples/algorithms/count-number-of-sub-string-recursively)
84. [Implement stack with max and min function](https://learnersbucket.com/examples/algorithms/implement-stack-with-max-and-min-function)
85. [Bubble sort using two stacks](https://learnersbucket.com/examples/algorithms/bubble-sort-using-two-stacks)
86. [Learn how to shuffle an array in javascript](https://learnersbucket.com/examples/algorithms/learn-how-to-shuffle-an-array-in-javascript)
87. [Learn how to reverse a doubly linked list](https://learnersbucket.com/examples/algorithms/learn-how-to-reverse-a-doubly-linked-list)
88. [Recursively reverse a doubly linked list](https://learnersbucket.com/examples/algorithms/recursively-reverse-a-doubly-linked-list)
89. [Merge two sorted linked list](https://learnersbucket.com/examples/algorithms/merge-two-sorted-linked-list)
90. [How to find loop in linked list](https://learnersbucket.com/examples/algorithms/how-to-find-loop-in-linked-list)
91. [Find height and width of binary tree](https://learnersbucket.com/examples/algorithms/find-height-and-width-of-binary-tree)
92. [Tree traversal in Javascript](https://learnersbucket.com/examples/algorithms/tree-traversal-in-javascript)


* Javascript specific problems

1. [Javascript confirm box with yes & no option](https://learnersbucket.com/examples/bootstrap4/custom-confirm-box-with-bootstrap)
2. [Replace all string occurrences in javascript](https://learnersbucket.com/examples/es6/replace-all-string-occurrences-in-javascript)
3. [How to find the substring in javascript](https://learnersbucket.com/examples/javascript/how-to-find-the-substring-in-javascript)
4. [How to find elements with indexof in javascript](https://learnersbucket.com/examples/array/how-to-find-elements-with-indexof-in-javascript)
5. [Javascript alert, confirm, prompt method](https://learnersbucket.com/examples/javascript/javascript-alert-confirm-prompt-method)
6. [Javascript settimeout method](https://learnersbucket.com/examples/javascript/javascript-settimeout-method)
7. [Javascript setinterval method](https://learnersbucket.com/examples/javascript/javascript-setinterval-method)
8. [How to use array sort in javascript](https://learnersbucket.com/examples/array/how-to-use-array-sort-in-javascript)
9. [Convert a string to lowercase in javascript](https://learnersbucket.com/examples/javascript/convert-a-string-to-lowercase-in-javascript)
10. [Remove an item from an array in javascript](https://learnersbucket.com/examples/array/remove-an-item-from-an-array-in-javascript)
11. [Convert a string to uppercase in javascript](https://learnersbucket.com/examples/javascript/convert-a-string-to-uppercase-in-javascript)
12. [Javascript get unique items from array](https://learnersbucket.com/examples/array/javascript-get-unique-items-from-array)
13. [How to get the last element of the array in javascript](https://learnersbucket.com/examples/array/how-to-get-the-last-element-of-the-array-in-javascript)
14. [Get the current URL in javascript](https://learnersbucket.com/examples/javascript/get-the-current-url-in-javascript)
15. [Different ways to get element by id in javascript](https://learnersbucket.com/examples/javascript/different-ways-to-get-element-by-id-in-javascript)
16. [How to open new tab in javascript](https://learnersbucket.com/examples/javascript/how-to-open-new-tab-in-javascript)
17. [Convert string to array in javascript](https://learnersbucket.com/examples/array/convert-string-to-array-in-javascript)
18. [Different ways to reload/refresh page in javascript](https://learnersbucket.com/examples/javascript/different-ways-to-reload-refresh-page-in-javascript)
19. [Different for loop in javascript](https://learnersbucket.com/examples/javascript/different-for-loop-in-javascript)
20. [Best way to compare strings in javascript](https://learnersbucket.com/examples/javascript/best-way-to-compare-strings-in-javascript)
21. [How to reverse a string in javascript](https://learnersbucket.com/examples/javascript/how-to-reverse-a-string-in-javascript)
22. [Dutch national flag problem](https://learnersbucket.com/examples/javascript/dutch-national-flag-problem)
23. [How to create a responsive sidebar menu](https://learnersbucket.com/examples/html/how-to-create-responsive-sidebar-menu)
24. [6 ways to convert string to a number in javascript](https://learnersbucket.com/examples/javascript/6-different-ways-to-convert-string-to-a-number-in-javascript)
25. [Convert int to string in javascript](https://learnersbucket.com/examples/javascript/convert-int-to-string-in-javascript)
26. [How to copy array in javascript](https://learnersbucket.com/examples/array/how-to-copy-array-in-javascript)
27. [Get element by class in Javascript](https://learnersbucket.com/examples/javascript/get-element-by-class-in-javascript)
28. [How to check undefined in javascript](https://learnersbucket.com/examples/javascript/how-to-check-undefined-in-javascript)
29. [3 different ways to hide DOM element using Javascript](https://learnersbucket.com/examples/html/3-different-ways-to-hide-dom-element-using-javascript)
30. [How to capitalize first letter of string in javascript](https://learnersbucket.com/examples/javascript/how-to-capitalize-first-letter-of-string-in-javascript)
31. [How to format phone number in javascript](https://learnersbucket.com/examples/javascript/how-to-format-phone-number-in-javascript)
32. [How to merge objects in javascript](https://learnersbucket.com/examples/javascript/how-to-merge-objects-in-javascript)
33. [Redirect url in javascript](https://learnersbucket.com/examples/javascript/redirect-url-in-javascript)
34. [How to generate random number in javascript](https://learnersbucket.com/examples/javascript/how-to-generate-random-number-in-javascript)
35. [How to check if given object is array in javascript](https://learnersbucket.com/examples/array/how-to-check-if-given-object-is-array-in-javascript)
36. [How to format a number to a currency in javascript](https://learnersbucket.com/examples/javascript/how-to-format-a-number-to-a-currency-in-javascript)
37. [How to create key value array in javascript](https://learnersbucket.com/examples/array/how-to-create-key-value-array-in-javascript)
38. [How to remove object from array in javascript](https://learnersbucket.com/examples/array/how-to-remove-object-from-array-in-javascript)
39. [Unique id generator in javascript](https://learnersbucket.com/examples/javascript/unique-id-generator-in-javascript)
40. [How to loop through object in javascript](https://learnersbucket.com/examples/javascript/how-to-loop-through-object-in-javascript)
41. [Make javascript functions sleep](https://learnersbucket.com/examples/javascript/make-javascript-functions-sleep)
42. [What is !! (double negation) operator in javascript?](https://learnersbucket.com/examples/javascript/what-is-double-negation-operator-in-javascript)
43. [Learn how to round to 2 decimal places in javascript](https://learnersbucket.com/examples/javascript/learn-how-to-round-to-2-decimal-places-in-javascript)
44. [Difference between == and === operator in javascript](https://learnersbucket.com/examples/javascript/difference-between-and-operator-in-javascript)
45. [let vs var in javascript](https://learnersbucket.com/examples/es6/let-vs-var-in-javascript)
46. [Javascript const vs var](https://learnersbucket.com/examples/es6/javascript-const-vs-var)
47. [Difference between != and !== operator in javascript](https://learnersbucket.com/examples/javascript/difference-between-and-operator-in-javascript-2)
48. [How to loop through array in javascript](https://learnersbucket.com/examples/array/how-to-loop-through-array-in-javascript)
49. [How to find length of an array in javascript](https://learnersbucket.com/examples/array/how-to-find-length-of-an-array-in-javascript)
50. [How to encode a url with javascript](https://learnersbucket.com/examples/javascript/how-to-encode-a-url-with-javascript)
51. [How to validate an email with javascript](https://learnersbucket.com/examples/javascript/how-to-validate-an-email-with-javascript)
52. [How to Copy to clipboard with Javascript.](https://learnersbucket.com/examples/javascript/how-to-copy-to-clipboard-with-javascript)
53. [How to get url parameter using javascript](https://learnersbucket.com/examples/javascript/how-to-get-url-parameter-using-javascript)
54. [Compare two array or object with JavaScript](https://learnersbucket.com/examples/array/compare-two-array-or-object-with-javascript)
55. [What is debouncing in javascript?](https://learnersbucket.com/examples/javascript/what-is-debouncing-in-javascript)
56. [What is throttling in javascript?](https://learnersbucket.com/examples/javascript/what-is-throttling-in-javascript)
57. [How to do lazy loading in javascript](https://learnersbucket.com/examples/javascript/how-to-do-lazy-loading-in-javascript)
58. [Javascript function that returns sum of the previous values](https://learnersbucket.com/examples/javascript/javascript-function-that-returns-sum-of-the-previous-values)
59. [Restrict modification of object properties in javascript.](https://learnersbucket.com/examples/javascript/restrict-modification-of-object-properties-in-javascript)
60. [Create a digital clock in javascript](https://learnersbucket.com/examples/javascript/create-a-digital-clock-in-javascript)
61. [Javascript function to create hexa color](https://learnersbucket.com/examples/javascript/javascript-function-to-create-hexa-color)
62. [How to load script efficiently with async and defer](https://learnersbucket.com/examples/html/how-to-load-script-efficiently-with-async-and-defer)
63. [What is the difference between an array and an object in JavaScript?](https://learnersbucket.com/examples/array/what-is-the-difference-between-an-array-and-an-object-in-javascript)
64. [Credit card validation in javascript](https://learnersbucket.com/examples/javascript/credit-card-validation-in-javascript)

This is the effort of last two years when I had decided to solve problems and post them on my blog. There is a long way ahead and  I am planning to make it bigger by adding more useful resources.

Please do check them and if you think this will be helpful in any way then share with your friends.

Also from the coming Monday (02/03/2020). I will be sharing how to create different types of components in React and many more cool stuffs.

you can follow me on [Twitter](https://twitter.com/LearnersBucket) @learnersbucket for regular updates.