Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

javascript-interview-questions

> 前端框架
Open source

List of 1000 JavaScript Interview Questions

27.6K stars0 likes1 views
WebsiteGitHub

About

List of 1000 JavaScript Interview Questions

JavaScript Interview Questions & Answers

Click :star:if you like the project and follow @SudheerJonna for more updates. Coding questions available here. Check DataStructures and Algorithms for DSA related questions and ECMAScript for all ES features.)


Practice 280+ JavaScript coding interview questions in-browser. Built by ex-FAANG interviewers. No AI-generated fluff. No fake reviews. Try GreatFrontEnd → 💡

I recommend this JavaScript Projects courses and this Advanced JavaScript Course to become top 10% at JS and this coding interview bootcamp to ace your coding interview and actually get hired.

Table of Contents

No. Questions
1 What are the possible ways to create objects in JavaScript
2 What is a prototype chain
3 What is the Difference Between call, apply, and bind
4 What is JSON and its common operations
5 What is the purpose of the array slice method
6 What is the purpose of the array splice method
7 What is the difference between slice and splice
8 How do you compare Object and Map
9 What is the difference between == and === operators
10 What are lambda expressions or arrow functions
11 What is a first class function
12 What is a first order function
13 What is a higher order function
14 What is a unary function
15 What is the currying function
16 What is a pure function
17 What are the benefits of pure functions
18 What is the purpose of the let keyword
19 What is the difference between let and var
20 What is the reason to choose the name let as a keyword
21 How do you redeclare variables in a switch block without an error
22 What is the Temporal Dead Zone
23 What is an IIFE (Immediately Invoked Function Expression)
24 How do you decode or encode a URL in JavaScript?
25 What is memoization
26 What is Hoisting
27 What are classes in ES6
28 What are closures
29 What are modules
30 Why do you need modules
31 What is scope in javascript
32 What is a service worker
33 How do you manipulate DOM using a service worker
34 How do you reuse information across service worker restarts
35 What is IndexedDB
36 What is web storage
37 What is a post message
38 What is a Cookie
39 Why do you need a Cookie
40 What are the options in a cookie
41 How do you delete a cookie
42 What are the differences between cookie, local storage and session storage
43 What is the main difference between localStorage and sessionStorage
44 How do you access web storage
45 What are the methods available on session storage
46 What is a storage event and its event handler
47 Why do you need web storage
48 How do you check web storage browser support
49 How do you check web workers browser support
50 Give an example of a web worker
51 What are the restrictions of web workers on DOM
52 What is a promise
53 Why do you need a promise
54 Explain the three states of promise
55 What is a callback function
56 Why do we need callbacks
57 What is a callback hell
58 What are server-sent events
59 How do you receive server-sent event notifications
60 How do you check browser support for server-sent events
61 What are the events available for server sent events
62 What are the main rules of promise
63 What is callback in callback
64 What is promise chaining
65 What is promise.all
66 Does Promise.all() cancel the other Promises?
67 What is the purpose of the race method in promise
68 What is a strict mode in javascript
69 Why do you need strict mode
70 How do you declare strict mode
71 What is the purpose of double exclamation
72 What is the purpose of the delete operator
73 What is typeof operator
74 What is undefined property
75 What is null value
76 What is the difference between null and undefined
77 What is eval
78 What is the difference between window and document
79 How do you access history in javascript
80 How do you detect caps lock key turned on or not
81 What is isNaN
82 What are the differences between undeclared and undefined variables
83 What are global variables
84 What are the problems with global variables
85 What is NaN property
86 What is the purpose of isFinite function
87 What is an event flow
88 What is event capturing
89 What is event bubbling
90 How do you submit a form using JavaScript
91 How do you find operating system details
92 What is the difference between document load and DOMContentLoaded events
93 What is the difference between native, host and user objects
94 What are the tools or techniques used for debugging JavaScript code
95 What are the pros and cons of promises over callbacks
96 What is the difference between an attribute and a property
97 What is same-origin policy
98 What is the purpose of void 0
99 Is JavaScript a compiled or interpreted language
100 Is JavaScript a case-sensitive language
101 Is there any relation between Java and JavaScript
102 What are events
103 Who created javascript
104 What is the use of preventDefault method
105 What is the use of stopPropagation method
106 What are the steps involved in return false usage
107 What is BOM
108 What is the use of setTimeout
109 What is the use of setInterval
110 Why is JavaScript treated as Single threaded
111 What is an event delegation
112 What is ECMAScript
113 What is JSON
114 What are the syntax rules of JSON
115 What is the purpose JSON stringify
116 How do you parse JSON string
117 Why do you need JSON
118 What are PWAs
119 What is the purpose of clearTimeout method
120 What is the purpose of clearInterval method
121 How do you redirect new page in javascript
122 How do you check whether a string contains a substring
123 [How do you validate an

Issues· 20 open

View all issuesOpen on GitHub
  • #358

    Label legacy and outdated JavaScript examples

    Updated Jul 21, 2026
  • #349

    Incorrect example

    Updated May 13, 2026
  • #352

    Add question: What is the difference between for loop and forEach

    Updated Mar 21, 2026
  • #346

    Question 38: Text not visible on image

    Updated Jan 29, 2026
  • #317

    has to update more javascript based questions asked in interviews

    Updated Aug 5, 2025

> Tags

JavaScriptangularcore-javascriptjavascriptjavascript-applications

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架