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 What is the purpose of the race method in promise
67 What is a strict mode in javascript
68 Why do you need strict mode
69 How do you declare strict mode
70 What is the purpose of double exclamation
71 What is the purpose of the delete operator
72 What is typeof operator
73 What is undefined property
74 What is null value
75 What is the difference between null and undefined
76 What is eval
77 What is the difference between window and document
78 How do you access history in javascript
79 How do you detect caps lock key turned on or not
80 What is isNaN
81 What are the differences between undeclared and undefined variables
82 What are global variables
83 What are the problems with global variables
84 What is NaN property
85 What is the purpose of isFinite function
86 What is an event flow
87 What is event capturing
88 What is event bubbling
89 How do you submit a form using JavaScript
90 How do you find operating system details
91 What is the difference between document load and DOMContentLoaded events
92 What is the difference between native, host and user objects
93 What are the tools or techniques used for debugging JavaScript code
94 What are the pros and cons of promises over callbacks
95 What is the difference between an attribute and a property
96 What is same-origin policy
97 What is the purpose of void 0
98 Is JavaScript a compiled or interpreted language
99 Is JavaScript a case-sensitive language
100 Is there any relation between Java and JavaScript
101 What are events
102 Who created javascript
103 What is the use of preventDefault method
104 What is the use of stopPropagation method
105 What are the steps involved in return false usage
106 What is BOM
107 What is the use of setTimeout
108 What is the use of setInterval
109 Why is JavaScript treated as Single threaded
110 What is an event delegation
111 What is ECMAScript
112 What is JSON
113 What are the syntax rules of JSON
114 What is the purpose JSON stringify
115 How do you parse JSON string
116 Why do you need JSON
117 What are PWAs
118 What is the purpose of clearTimeout method
119 What is the purpose of clearInterval method
120 How do you redirect new page in javascript
121 How do you check whether a string contains a substring
122 How do you validate an email in javascript
123 How do you get the current url with javascript
124 What are the various url properties of location object
125 How do you get query string values in javascript
126 How do you check if a key exists in an object
127 How do you loop through or enumerate javascript object
128 How do you test for an empty object
129 What is an arguments object
130 How do you make first letter of the string in an uppercase
131 What are the pros and cons of for loops
132 How do you display the current date in javascript
133 How do you compare two date objects
134 How do you check if a string starts with another string
135 How do you trim a string in javascript
136 How do you add a key value pair in javascript
137 Is the !-- notation represents a special operator
138 How do you assign default values to variables
139 How do you define multiline strings
140 What is an app shell model
141 Can we define properties for functions
142 What is the way to find the number of parameters expected by a function
143 What is a polyfill
144 What are break and continue statements
145 What are js labels
146 What are the benefits of keeping declarations at the top
147 What are the benefits of initializing variables
148 What are the recommendations to create new object
149 How do you define JSON arrays
150 How do you generate random integers
151 Can you write a random integers function to print integers within a range
152 What is tree shaking
153 What is the need of tree shaking
154 Is it recommended to use eval
155 What is a Regular Expression
156 What are the string methods that accept Regular expression
157 What are modifiers in regular expression
158 What are regular expression patterns
159 What is a RegExp object
160 How do you search a string for a pattern
161 What is the purpose of exec method
162 How do you change the style of a HTML element
163 What would be the result of 1+2+'3'
164 What is a debugger statement
165 What is the purpose of breakpoints in debugging
166 Can I use reserved words as identifiers
167 How do you detect a mobile browser
168 How do you detect a mobile browser without regexp
169 How do you get the image width and height using JS
170 How do you make synchronous HTTP request
171 How do you make asynchronous HTTP request
172 How do you convert date to another timezone in javascript
173 What are the properties used to get size of window
174 What is a conditional operator in javascript
175 Can you apply chaining on conditional operator
176 What are the ways to execute javascript after a page load
177 What is the difference between proto and prototype
178 Can you give an example of when you really need a semicolon
179 What is the freeze method
180 What is the purpose of the freeze method
181 Why do I need to use the freeze method
182 How do you detect a browser language preference
183 How to convert a string to title case with javascript
184 How do you detect if javascript is disabled on the page
185 What are various operators supported by javascript
186 What is a rest parameter
187 What happens if you do not use rest parameter as a last argument
188 What are the bitwise operators available in javascript
189 What is a spread operator
190 How do you determine whether object is frozen or not
191 How do you determine two values same or not using object
192 What is the purpose of using object is method
193 How do you copy properties from one object to other
194 What are the applications of the assign method
195 What is a proxy object
196 What is the purpose of the seal method
197 What are the applications of the seal method
198 What are the differences between the freeze and seal methods
199 How do you determine if an object is sealed or not
200 How do you get enumerable key and value pairs
201 What is the main difference between Object.values and Object.entries method
202 How can you get the list of keys of any object
203 How do you create an object with a prototype
204 What is a WeakSet
205 What are the differences between WeakSet and Set
206 List down the collection of methods available on WeakSet
207 What is a WeakMap
208 What are the differences between WeakMap and Map
209 List down the collection of methods available on WeakMap
210 What is the purpose of uneval
211 How do you encode an URL
212 How do you decode an URL
213 How do you print the contents of web page
214 What is the difference between uneval and eval
215 What is an anonymous function
216 What is the precedence order between local and global variables
217 What are javascript accessors
218 How do you define property on Object constructor
219 What is the difference between get and defineProperty
220 What are the advantages of Getters and Setters
221 Can I add getters and setters using defineProperty method
222 What is the purpose of switch-case
223 What are the conventions to be followed for the usage of switch case
224 What are primitive data types
225 What are the different ways to access object properties
226 What are the function parameter rules
227 What is an error object
228 When do you get a syntax error
229 What are the different error names from error object
230 What are the various statements in error handling
231 What are the two types of loops in javascript
232 What is nodejs
233 What is the Intl object
234 How do you perform language specific date and time formatting
235 What is an Iterator
236 How does synchronous iteration works
237 What is the event loop
238 What is the call stack
239 What is the event queue
240 What is a decorator
241 What are the properties of the Intl object
242 What is an Unary operator
243 How do you sort elements in an array
244 What is the purpose of compareFunction while sorting arrays
245 How do you reverse an array
246 How do you find the min and max values in an array
247 How do you find the min and max values without Math functions
248 What is an empty statement and purpose of it
249 How do you get the metadata of a module
250 What is the comma operator
251 What is the advantage of the comma operator
252 What is typescript
253 What are the differences between javascript and typescript
254 What are the advantages of typescript over javascript
255 What is an object initializer
256 What is a constructor method
257 What happens if you write constructor more than once in a class
258 How do you call the constructor of a parent class
259 How do you get the prototype of an object
260 What happens If I pass string type for getPrototype method
261 How do you set the prototype of one object to another
262 How do you check whether an object can be extended or not
263 How do you prevent an object from being extend
264 What are the different ways to make an object non-extensible
265 How do you define multiple properties on an object
266 What is the MEAN stack
267 What is obfuscation in javascript
268 Why do you need Obfuscation
269 What is Minification
270 What are the advantages of minification
271 What are the differences between obfuscation and Encryption
272 What are the common tools used for minification
273 How do you perform form validation using javascript
274 How do you perform form validation without javascript
275 What are the DOM methods available for constraint validation
276 What are the available constraint validation DOM properties
277 What are the validity properties
278 Give an example usage of the rangeOverflow property
279 Are enums available in javascript
280 What is an enum
281 How do you list all properties of an object
282 How do you get property descriptors of an object
283 What are the attributes provided by a property descriptor
284 How do you extend classes
285 How do I modify the url without reloading the page
286 How do you check whether or not an array includes a particular value
287 How do you compare scalar arrays
288 How to get the value from get parameters
289 How do you print numbers with commas as thousand separators
290 What is the difference between java and javascript
291 Does JavaScript support namespaces
292 How do you declare a namespace
293 How do you invoke javascript code in an iframe from the parent page
294 How do you get the timezone offset of a date object
295 How do you load CSS and JS files dynamically
296 What are the different methods to find HTML elements in DOM
297 What is jQuery
298 What is V8 JavaScript engine
299 Why do we call javascript as dynamic language
300 What is a void operator
301 How to set the cursor to wait
302 How do you create an infinite loop
303 Why do you need to avoid with statement
304 What is the output of the following for loops
305 List down some of the features of ES6
306 What is ES6
307 Can I redeclare let and const variables
308 Does the `const` variable make the value immutable
309 What are default parameters
310 What are template literals
311 How do you write multi-line strings in template literals
312 What are nesting templates
313 What are tagged templates
314 What are raw strings
315 What is destructuring assignment
316 What are default values in destructuring assignment
317 How do you swap variables in destructuring assignment
318 What are enhanced object literals
319 What are dynamic imports
320 What are the use cases for dynamic imports
321 What are typed arrays
322 What are the advantages of module loaders
323 What is collation
324 What is for...of statement
325 What is the output of below spread operator array
326 Is PostMessage secure
327 What are the problems with postmessage target origin as wildcard
328 How do you avoid receiving postMessages from attackers
329 Can I avoid using postMessages completely
330 Is postMessages synchronous
331 What paradigm is Javascript
332 What is the difference between internal and external javascript
333 Is JavaScript faster than server side script
334 How do you get the status of a checkbox
335 What is the purpose of double tilde operator
336 How do you convert character to ASCII code
337 What is ArrayBuffer
338 What is the output of below string expression
339 What is the purpose of Error object
340 What is the purpose of EvalError object
341 What are the list of cases error thrown from non-strict mode to strict mode
342 Do all objects have prototypes
343 What is the difference between a parameter and an argument
344 What is the purpose of some method in arrays
345 How do you combine two or more arrays
346 What is the difference between Shallow and Deep copy
347 How do you create specific number of copies of a string
348 How do you return all matching strings against a regular expression
349 How do you trim a string at the beginning or ending
350 What is the output of below console statement with unary operator
351 Does javascript uses mixins
352 Mixin Example using Object composition
353 Benefits
354 What is a thunk function
355 What are asynchronous thunks
356 What is the output of below function calls
357 How to remove all line breaks from a string
358 What is the difference between reflow and repaint
359 What happens with negating an array
360 What happens if we add two arrays
361 What is the output of prepend additive operator on falsy values
362 How do you create self string using special characters
363 How do you remove falsy values from an array
364 How do you get unique values of an array
365 What is destructuring aliases
366 How do you map the array values without using map method
367 How do you empty an array
368 How do you round numbers to certain decimals
369 What is the easiest way to convert an array to an object
370 How do you create an array with some data
371 What are the placeholders from console object
372 Is it possible to add CSS to console messages
373 What is the purpose of dir method of console object
374 Is it possible to debug HTML elements in console
375 How do you display data in a tabular format using console object
376 How do you verify that an argument is a Number or not
377 How do you create copy to clipboard button
378 What is the shortcut to get timestamp
379 How do you flattening multi dimensional arrays
380 What is the easiest multi condition checking
381 How do you capture browser back button
382 How do you disable right click in the web page
383 What are wrapper objects
384 What is AJAX
385 What are the different ways to deal with Asynchronous Code
386 How to cancel a fetch request
387 What is web speech API
388 What is minimum timeout throttling
389 How do you implement zero timeout in modern browsers
390 What are tasks in event loop
391 What is microtask
392 What are different event loops
393 What is the purpose of queueMicrotask
394 How do you use javascript libraries in typescript file
395 What are the differences between promises and observables
396 What is heap
397 What is an event table
398 What is a microTask queue
399 What is the difference between shim and polyfill
400 How do you detect primitive or non primitive value type
401 What is babel
402 Is Node.js completely single threaded
403 What are the common use cases of observables
404 What is RxJS
405 What is the difference between Function constructor and function declaration
406 What is a Short circuit condition
407 What is the easiest way to resize an array
408 What is an observable
409 What is the difference between function and class declarations
410 What is an async function
411 How do you prevent promises swallowing errors
412 What is deno
413 How do you make an object iterable in javascript
414 What is a Proper Tail Call
415 How do you check an object is a promise or not
416 How to detect if a function is called as constructor
417 What are the differences between arguments object and rest parameter
418 What are the differences between spread operator and rest parameter
419 What are the different kinds of generators
420 What are the built-in iterables
421 What are the differences between for...of and for...in statements
422 How do you define instance and non-instance properties
423 What is the difference between isNaN and Number.isNaN?
424 How to invoke an IIFE without any extra brackets?
425 Is that possible to use expressions in switch cases?
426 What is the easiest way to ignore promise errors?
427 How do style the console output using CSS?
428 What is nullish coalescing operator (??)?
429 How do you group and nest console output?
430 What is the difference between dense and sparse arrays?
431 What are the different ways to create sparse arrays?
432 What is the difference between setTimeout, setImmediate and process.nextTick?
433 How do you reverse an array without modifying original array?
434 How do you create custom HTML element?
435 What is global execution context?
436 What is function execution context?
437 What is debouncing?
438 What is throttling?
439 What is optional chaining?
440 What is an environment record?
441 How to verify if a variable is an array?
442 What is pass by value and pass by reference?
443 What are the differences between primitives and non-primitives?
444 How do you create your own bind method using either call or apply method?
445 What are the differences between pure and impure functions?
446 What is referential transparency?
447 What are the possible side-effects in javascript?
448 What are compose and pipe functions?
449 What is module pattern?
450 What is Function Composition?
451 How to use await outside of async function prior to ES2022?
452 What is the purpose of the this keyword in JavaScript?
453 What are the uses of closures?
454 What are the phases of execution context?
455 What are the possible reasons for memory leaks?
456 What are the optimization techniques of V8 engine?
457 What are the examples of built-in higher order functions?
458 What are the benefits higher order functions?
459 How do you create polyfills for map, filter and reduce methods?
460 What is the difference between map and forEach functions?
461 Give an example of statements affected by automatic semicolon insertion?
462 What are the event phases of a browser?
463 What are the real world use cases of proxy?
464 What are hidden classes?
465 What is inline caching?
466 What are the different ways to execute external scripts?
467 What is Lexical Scope?
468 How to detect system dark mode in javascript?
469 What is the purpose of requestAnimationFrame method?
470 What is the difference between substring and substr methods?
471 How to find the number of parameters expected by a function?
472 What is globalThis, and what is the importance of it?
473 What are the array mutation methods?
474 What is module scope in JavaScript?
475 What are shadowing and illegal shadowing?
476 Why is it important to remove event listeners after use?
477 What is structuredClone and how is it used for deep copying objects?
478 What is the difference between const and Object.freeze