0% found this document useful (0 votes)
28 views3 pages

Top 100 Javascript Questions

The document lists 103 essential JavaScript interview questions covering various topics such as language fundamentals, data types, functions, error handling, DOM manipulation, and asynchronous programming. It addresses key concepts like scope, hoisting, promises, closures, and event handling. This comprehensive guide serves as a resource for individuals preparing for JavaScript-related interviews.

Uploaded by

sharma892078
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

Top 100 Javascript Questions

The document lists 103 essential JavaScript interview questions covering various topics such as language fundamentals, data types, functions, error handling, DOM manipulation, and asynchronous programming. It addresses key concepts like scope, hoisting, promises, closures, and event handling. This comprehensive guide serves as a resource for individuals preparing for JavaScript-related interviews.

Uploaded by

sharma892078
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Top 100 javascript questions :

1.What is javascript language?


2.What is javascript engine ?
3.What is server side and client side?
4.What is scope in js?
5.What is the type of variable in js when it is declared without using the
var ,const ,let.?
6.What is hoisting in javascript ?
7.Which does not allow hoisting let ,const ,var??Temporal dead zone
8.What is json ?
9.What are variables ?what is the difference between let,var and const ?
10.var is a functional scoped variable or Block scoped variable ?
11.Which is better for defining variables ?->Let ->Block scoped variable
12.What are datatypes in javascript ?
13.What are the categories of datatypes ?
14.What are the primitive datatypes ?
15.What are non primitive datatypes ?
16.What is the difference between null and undefines in javascript ?
17.What is the use of typeof operator ?
18.What is type coercion in javascript ?
19.What is object precedence ?
20.What is the unary,binary and ternary operators?
21.What is short circuit evaluation in javascript ?
22.What is operator precedence ?
23.what are the type of conditional statement in javascript ?
24.What are the types of conditons statement in javascript ?
25.What is the difference between == and ===?or loose equality and strict
equality ?
26.What is the difference between rust and spread in javascript ?
27.How to get add and remove element from the array ?
28.What is the indexof method of an array ?
29.What is the difference between find and the filter method in an array ?
30.What is the slice method of an array ?
31.What is the difference between concat and push in array?
32.What is the difference between pop and shift method of an array ?
33.What is the splice method in javascript ?
34.What is the difference between slice and splice method in an array ?
35.What is the difference between map and foreach element in subarray ?
36.How do you sort and reverse an array ?
37.What is array destructing in javascript ?
38.What are array like object in javascript ?
39.How do you convert array like object into an array ?
40.What is the difference between for loop and while loop in javascript ?
41.What is the difference between break and continue in javascript ?
42.Can we use if else condition inside foreach loop method?
43.What are functions in javascript and what are the types of functions in
javascript ?
44.What is the difference between named function and ananoymous function in
javascript ?
45.What are arrow functions in javascript ? what are the use of those functions in
javascript ?
46.What are calback functions and what its uses ?
47.What is the difference between arguments and parameters ?
48.What is the use of even handling in js ?Get reference of the event(get elementby
Id /) and then add an event listner(addevent listner) for that event like .(event
and function)
49.What are pure and impure functions in js ?
50.What is functions curying in js?
51.What are call apply bind in js ?
52.What are template literals and interpolation in strings ?
53.What is the difference between single quotes double quotes and tick in js ?
54.What is string immutability ?
55.In how many ways you can concatenate a string in js ?
56.What is Dom ?What is the difference between dom and html ?
57.How do you select modify create and remove dom elements ?
58.What are the selectors in js ?:->get element by id :->select a single element
59.what is the difference between
getelementbyid,getelementbyclassname,getelementbytagname?
60.What is the difference between the query selector and queryselectorall?
61.What are the methods to modify elements properties and attributes ?
62.What is the difference between inner html and text content ?
63.How to add and remove properties of html elements in the dom using js ?
64.How to create new elements in js and what is the difference between
createelement and clonenode elements?
65.What is error handling in js ?
66.What is the role of finally block in js ?
67.what is the purpose of throw statement in js ?
68.What is error propogation in js ?:->throw passes one part of error to another
try catch so that you can handle that error
69.What are the best practices for error handling ?
70.What are the different types of error in js ?
71.What are objects in js ?
72.In how many ways we can create an object ?
73.What is the difference between an array and object in js ?
74.How do you add modify and delete properties of objects ?
75.What are the some common ways in which you can iterate over the properties of
objects ?
76.How do you check the properties of object exist or not ?:->hasown
property ,comparing properties with undefined
77.How do you clone or copy the object ?:->spread three dots method
78.What is the difference between deep copy and shallow copy in js ?shallow copy -
>object,assign method ,it also change the property of original object ,but while in
deep copy first we convert them to string then to json.parse and json.stringify
79.What is the set object in js ?
80.What is map object in js ?
81.What are events ?How events are triggered ?
82.What is event object in js ?
83.What is event delegation in js ?:suppose we have three events so we make a
parent event for that those event properties will get executed
84.What is event bubbling in js ?bubbling means growing from ineer to outer
85.How you stop event bubbling in js ?:stop propogation method
86.What is event capturing ?Outer se inner ki trf jaate hai isme
87.what us the use of this keyword ?
88.How do you remove event handler in js ? removeeventlistner
89.What is the call stack, event loop, task queue, and microtask queue in
JavaScript?
90.What is the difference between synchronous and asynchronous code?
91.What is a Promise in JavaScript?
92.What are the states of a Promise?
93.What is the difference between async and await?
94.What is the difference between Promise.all, Promise.race, Promise.allSettled,
and Promise.any?
95.What is the difference between microtasks (Promise, MutationObserver) and
macrotasks (setTimeout, setInterval)?
96.What is a closure in JavaScript? Give examples.
97. What is lexical scope in JS?
98.What is the difference between execution context and scope?
99.What is the difference between synchronous execution context and asynchronous
execution context?
100.What is memoization in JS?
101.What is recursion in JS?
102.What is the difference between function declaration, function expression, and
arrow function?
103.What is the difference between this in normal functions vs arrow functions?

You might also like