Table of contents
No headings in the article.
What is JavaScript and how does it differ from Java?
how javascript is executed ? (or) what is execution context ? how many phase it has ?
Explain the concept of hoisting in JavaScript. (or) What is the difference between "let", "const", and "var" in JavaScript? (or) what is temporal dead zone?
What is a closure in JavaScript? Provide an example. (or) What are closures? How do they work? Provide an example. (or) What are scope chaining?
why javascript is called a First Class Function (or) First Class Citizens?
difference between
async and differ? when to use what?
local storage, cookies and session? when to use what?
authentication and authorization? How do you handle it?
Function statement (or) Function Declaration, Function expression, Anonymous Function, Named Function Expression?
function currying , function constructor , IIFE , pure function , function compose
Local vs global scope , Scope, lexical scope
Event loop , call stack , web api, (callback queue, micro task queue → which has highest priority)
"let", "const", and "var"
callback , promise and async-await? which is better? when to use what?
"undefined","null" and not defined
call by value and call by reference
Event bubbling , Event capturing / trickling and Event delegation
debouncing and throttling? when to use what? write code of both?
synchronous and asynchronous programming
"==" and "===" operators
"nullish coalescing" and "optional chaining" operators
shallow and deep copy? (or) how do you copy/clone array and object in js?
normal function and arrow function?
"for in" and "for of"
setTimeout and setInterval
map, filter and reduce? (or) higher order function? write polyfill of each?
map vs foreach
JSON.stringify() and JSON.parse()
spread and rest operator
call, apply and bind? when to use what? write polyfill of each?
parameter and argument
prototype vs prototypal inheritance
function, generator functions and iterators
slice vs splice
fetch vs axios vs xml
Obj.seal vs obj.freeze
promise.all(), promise.allselected(), promise.race() and promise.any()
Map and weak map
set and weak set
es5 and es6
tricky question
const points = [40, 100, 1, 5, 25, 10];
points.sort(); -> o/p : 1,10,100,25,40,5, why?
typeof []
what is Event Flow in js? (or) what is Event bubbling, capturing? (or) all phases of event in js?
How do you handle asynchronous operations in JavaScript? Explain the concept of callbacks.
What is the "this" keyword in JavaScript? How does it work?
Explain the concept of memoization in JavaScript.
How do you handle CORS (Cross-Origin Resource Sharing) in JavaScript?
Describe the concept of currying in JavaScript.
What are modules in JavaScript? How do you import and export modules?
Explain the concept of functional programming in JavaScript.
How do you handle date and time manipulation in JavaScript?
How do you handle error handling in JavaScript? Explain the try-catch statement.
What are the different ways to loop through an array in JavaScript?
What are the different ways to handle JSON data in JavaScript?
How do you handle memory management in JavaScript?
What are the different methods for string manipulation in JavaScript?
Describe the concept of function composition in JavaScript.
Explain the concept of the "arguments" object in JavaScript.
What are the different ways to handle concurrency in JavaScript?
How do you handle cross-site request forgery (CSRF) attacks in JavaScript?
How do you handle memory profiling in JavaScript?
Explain the concept of the module pattern in JavaScript.
What are the different ways to handle form validation in JavaScript?
How do you handle data manipulation in JavaScript?
Explain the concept of asynchronous generators in JavaScript.
refer:
akshay-saini : youtube , namaste-js-season1 , namaste-js-season2 , notes
roadside-coder : youtube , hashnode
code-step-by-step : playlist
uncommon-geeks : playlist