web fundamentals
- List a few optimization techniques with which we can improve the load time of a website. Image Optimization(WebP instead of JPEG or PNG), Minification and Concatenation(Minify CSS, JavaScript, and HTML files to reduce file sizes by removing unnecessary characters), Browser Caching, Reduce Server Response Time, Reduce HTTP Requests, Optimize Web Fonts
- What is Server Side Rendering?
- difference between ssr and csr and when to preferred ssr vs csr
- what is websocket
- What are content delivery networks? A Content Delivery Network (CDN) is a system of distributed servers that work together to deliver web content, such as images, videos, scripts, and stylesheets, to users more efficiently. The primary goal of a CDN is to improve the performance, reliability, and speed of delivering content to users across different geographic locations.
- What is the difference between authentication and authorization? Authentication verifies the identity of a person or device, at the same time as authorization determines their access rights and permissions.
- What is a minification of code and why should we use it? Minification of code is the process of removing all unnecessary characters (spaces, line breaks, comments) from the source code of web applications without changing its functionality, why should we use it - Reduced File Size, Improved Performance and SEO Benefits.
- difference between local storage and session storage
- what is cookies and What are cookies used for Cookies are small pieces of text sent to browser by a web app. They contain data that can be used by the web app to remember information about your visit, such as your preferences or login status
- difference between flex and grid
- difference between display none and visibility hidden display none completely removes the element from the webpage layout
- what is box model in css
- what is SPA
- what are semantic tags A semantic element clearly describes its meaning to both the browser and the developer
- difference between inline and block elements
- difference between position fixed and sticky
- what is box sizing
- what is z index in css
- what is Frontend Build Tools webpack
Js
- what are the data types in javascript Primitive Data Types and Non-Primitive (Reference) Data Types
- why javascript is dynamically typed language JavaScript is a dynamic language and not static, cause variables can hold values of different types during runtime.
- what is microtask Microtask Queue is like the Callback Queue, but Microtask Queue has higher priority. All the callback functions coming through Promises and Mutation Observer will go inside the Microtask Queue. For example, in the case of .fetch(), the callback function gets to the Microtask Queue.
- memoization debouncing and throttling Memoization is the technique storing the result so we can use it next time instead of calculating the same thing again and again. Debouncing ensures that a function is not called too frequently we can delay its execution time Use Case: Search Input (300 milliseconds) Throttling makes sure that a function is only run once during a set period of time (interval), no matter how many times an event happens Use Case: Scrolling (200 milliseconds)
- what is closure and lexical scope , explain via writing code closure is the combination of lexical scope and local scope of inner function. Lexical Scope defines that inner functions can access the scope of parent functions even if they has returned.
- what is currying in javascript Currying is a functional programming technique where a function with multiple arguments is transformed into a single argument like a series.
- event loop
- what is difference between normal function and arrow function Arrow functions use the "fat arrow" syntax (=>) to create a concise way to write functions. Arrow functions do not create their own this binding Arrow functions cannot be used as constructors Hoisting canโt be achieved by using arrow function
- what is Higher-order function
- what is hoisting
- what is tdz in javascript
- diff bt var and let
- what is event delegation and bubbling
- diff bt sync and Async
- what is callback hell
- what is promise
- what are the states of promises
- what is promise chaining
- what is async and await in JavaScript
- ๐๐ฌ๐ฒ๐ง๐/๐๐๐๐๐ซ
- ๐๐จ๐ฅ๐ฒ๐๐ข๐ฅ๐ฅ
- ๐๐๐๐
- what is event delegation and event bubbling
- https://gist.github.com/ajayjhaDev/eef4d139120acb6c69c64fa4a9be1ceb
React
- https://gist.github.com/ajayjhaDev/a84c7e86020ceb34a0a9b7c14edb3688
- suspense lazy loading
- code splitting react
- error boundary react
- what are way to optimize the react application
- difference between axios and fetch
go to oops class methods and all
chaining
diff prototype proto
typescript questions
position all properties explain
box sizing
css selector preference CSS Specificity hierarchy
what is pseudo selector in css
this keyword in javascript
this keyword refers to different objects depending upon context of the code
bind call apply
call(): Invokes the function immediately with arguments passed individually.
apply(): Invokes the function immediately with arguments passed as an array.
bind(): Returns a new function with bound this context and arguments, but doesn't invoke it immediately.
useRef createRef
fiber
webworkers
controlled and uncontrolled
useMemo usecallback
diff b/w shallow dom and virtual dom
heapMemory
How do you handle memory leaks in JavaScript applications?
diff b/w deep copy and shallow copy
Shallow Copy stores the references of objects or array values to the original memory address.
whereas Deep copy stores copies of the objectโs or array values.
currying
What is CORS error
Doctype in html meta tags and their attributes
How to optimize react build
calculator.add(3).substract(5).multiply(6).getResult()
- Javascript
- Machine Coding / React
- DSA
- System design
- Managerial Round
๐ฒ Javascript (around 45-60 min)
๐ Design patterns like singleton, factory patterns etc
๐ Implement the publisher-subscriber pattern in javascript
๐ Implement the map, filter, reduce, and for Each polyfill
๐ Implement the Function.bind, call, apply method on the Function Prototype
๐ Implement Async. parallel, Async.series which executes a set of async tasks parallel and in series
๐ Implement Retry API with n number of
๐ Prototype and prototype inheritance
๐ How rendering work in the browser
๐ Event delegation and event propagation in js
๐ Implement Memoization
๐ Progressive Web application
๐ Clone an Object
๐ Debouncing and Throttling
๐ Implement clearAllTimeout()
๐ Build a Promise from Scratch
๐ Event Target โ addEventListener, removeEventListener, dispatchEvent
๐ Intersection Observe
๐ด Implement a function to flatten a nested array (recursive and iterative)
๐ด Promises ( polyfill of Promise all, race, allSettle )
๐ด Implement the publisher-subscriber pattern
๐ด Implement Async. parallel, Async.series which executes a set of async tasks parallel and in series
๐ด Currying with examples and deep clone an Object
๐ด Debouncing, Throttling and Implementing โthatโ Retry API
๐ด Memorization and how rendering works in a browser
๐ฒ React/Machine coding (around 60-120min)
๐ Introduction JSX
๐ React Component
๐ Component State and Props
๐ Adding Style (CSS)
๐ Functional and Class components
๐ React Lifecycle Methods
๐ Virtual DOM
๐ React Hooks
๐ Custom Hooks
๐ Context API
๐ Synthetic Events
๐ Routing
๐ Data Flow (Redux/Flux)
๐ Server-Side Rendering
๐ Unit Testing
๐ Jest & React Testing library
๐ Mocking Data
๐ Understanding Webpack (Bundler)
๐ Babel, env, prettier, linter
๐ฒ Machine Coding
๐โโ๏ธ Star Rating
๐โโ๏ธ Design Pop Over
๐โโ๏ธ Design Accordion
๐โโ๏ธ Design Carousel
๐โโ๏ธ Design grid using HTML/CSS and Javascript with search and sort, event bubbling (Amazon onsite)
๐โโ๏ธ Design NavBar
๐โโ๏ธ Infinite Scroll
๐โโ๏ธ Typeahead / autocomplete using trie
๐โโ๏ธ Implement Debounce function
๐โโ๏ธ Implement tic tac toe
๐โโ๏ธ Make snake ladder board
๐โโ๏ธ Make calendar of any Month like Date Picker
๐โโ๏ธ Implement throttle function ect
๐ฒ System design (around 45-60 min)
๐ณ Component-Based Architecture
๐ณ State Management
๐ณ Performance Optimization
๐ณ Scalability and Maintainability
๐ณ PWA
๐ณ CDN
๐ณ Security
๐ฒ Managerial Round (around 45-60 min)
๐ Previous Experience
๐ Problem Solving
๐ Principle
๐๐๐ฏ๐๐๐๐ซ๐ข๐ฉ๐ญ
- Variables and Data Types
- Control Flow (if statements, loops)
- Functions and Scope
- Arrays and Objects
- Promises and Asynchronous Programming
- Closures
- Event Handling
- AJAX and Fetch API
- Error Handling
- ES6+ Features (e.g., arrow functions, destructuring)
- Prototypes and Inheritance
- Modules and Module Bundlers (e.g., CommonJS, ES modules)
๐๐๐๐๐ญ
- JSX (JavaScript XML)
- Components and Props
- State and Lifecycle
- Handling Events in React
- Conditional Rendering
- Lists and Keys
- Forms in React
- React Hooks
- Context API
- Lifecycle Methods
- React Router
- Redux (State Management)
- Higher-Order Components (HOCs)
- Testing in React (e.g., Jest and React Testing Library)
- React Performance Optimization
๐๐๐ญ๐ฐ๐จ๐ซ๐ค๐ข๐ง๐
- Content Delivery Networks (CDNs)
- Domain Sharding
- HTTP/2 and HTTP/3 Protocols
- Latency and Bandwidth Optimization
๐๐๐ซ๐๐จ๐ซ๐ฆ๐๐ง๐๐ ๐๐ง๐ ๐จ๐ฉ๐ญ๐ข๐ฆ๐ข๐ณ๐๐ญ๐ข๐จ๐ง
- Critical Rendering Path
- Minification and Compression
- Image Optimization Techniques
- Asynchronous Loading Strategies (e.g., defer, async)
๐๐ฒ๐ฌ๐ญ๐๐ฆ ๐๐๐ฌ๐ข๐ ๐ง
- Scalability considerations
- Modular and component-based architecture
- Efficient data fetching and caching strategies
- Responsive and mobile-friendly design
- Load balancing and CDN integration
๐ดJavaScript fundamentals
โ How does the โthisโ work in different scenarios?
โ Closure and Hoisting
โ How rendering works in the browser and networking concepts?
๐ด Asynchronous Programming
โ Implement the โFunction.bind,โ โcall,โ and โapplyโ methods on the Function Prototype
โ Implement โAsync.parallelโ and โAsync.seriesโ to execute a set of asynchronous tasks in parallel and in series
๐ด DOM Manipulation
โ How would you approach handling a large number of DOM updates efficiently?
โ What is an event delegation and why is it useful?
๐ด Performance Optimization
โ How do you handle memory leaks in JavaScript applications?
โ What are some ways to improve the performance of a web application?
๐ด Advanced Topics
โ Design patterns (singleton, pubsub, factory method), progressive web application and security patterns
๐ Promises ( polyfill of Promise all, race, allSettle )
๐ Currying with example
๐ String.prototype.repeat
๐ Implement the compose() and pipe() polyfill .
๐ Design patterns like singleton, factory patterns etc
๐ Implement the publisher-subscriber pattern in javascript
๐ Implement the map, filter, reduce, and for Each polyfill
๐ Implement the Function.bind, call, and apply method on the Function Prototype
๐ Implement Async. parallel, Async.series which executes a set of async tasks parallel and in series
๐ Implement thet Retry API
๐ Prototype and prototype inheritance
๐ How rendering work in the browser
๐ Event delegation and event propagation in js
๐ Implement Memoization
๐ Progressive Web application
๐ Clone an Object
๐ Debouncing and Throttling
๐ Implement clearAllTimeout()
๐ Build a Promise from Scratch
๐ How does JS "this" works in different scenarios?
๐ Implement a function to flatten a nested array
๐ Implement an LRU Cache
Here's my Amazon Frontend Engineer II interview experience to help you!
๐ด Assessment Round:
I got the assignment via e-mail and completed it on the same day. It was primarily a machine coding round.
๐ด Managerial Round:
This round was around past projects and leadership principles.
๐ด Coding Round 1:
It was focused on vanilla JS and CRUD operations on searching and sorting. It also included core concepts of js.
๐ด Coding round 2:
Here I was asked DSA recursion and backtracking based questions similar to file management system in linux.
๐ด System Design Round:
I had to design a web application focusing on scalability optimization, DOM manipulation and accessibility.
๐๐๐๐๐ญ๐๐ has been extremely in demand for some years and feels like it will continue to be in demand. ๐ฒ๐ฒ
Here is step by step roadmap ๐๐ป
๐.๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ
โข Functional Components
โข Class Components
โข JSX (JavaScript XML) Syntax
๐.๐๐ซ๐จ๐ฉ๐ฌ (๐๐ซ๐จ๐ฉ๐๐ซ๐ญ๐ข๐๐ฌ)
โข Passing Props
โข Default Props
โข Prop Types
๐.๐๐ญ๐๐ญ๐
โข useState Hook
โข Class Component State
โข Immutable State
๐.๐๐ข๐๐๐๐ฒ๐๐ฅ๐ ๐๐๐ญ๐ก๐จ๐๐ฌ (๐๐ฅ๐๐ฌ๐ฌ ๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ)
โข componentDidMount
โข componentDidUpdate
โข componentWillUnmount
๐.๐๐จ๐จ๐ค๐ฌ (๐
๐ฎ๐ง๐๐ญ๐ข๐จ๐ง๐๐ฅ ๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ)
โข useState
โข useEffect
โข useContext
โข useReducer
โข useCallback
โข useMemo
โข useRef
โข useImperativeHandle
โข useLayoutEffect
๐.๐๐ฏ๐๐ง๐ญ ๐๐๐ง๐๐ฅ๐ข๐ง๐
โข Handling Events in Functional Components
โข Handling Events in Class Components
๐.๐๐จ๐ง๐๐ข๐ญ๐ข๐จ๐ง๐๐ฅ ๐๐๐ง๐๐๐ซ๐ข๐ง๐
โข if Statements
โข Ternary Operators
โข Logical && Operator
๐.๐๐ข๐ฌ๐ญ๐ฌ ๐๐ง๐ ๐๐๐ฒ๐ฌ
โข Rendering Lists
โข Keys in React Lists
๐.๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ ๐๐จ๐ฆ๐ฉ๐จ๐ฌ๐ข๐ญ๐ข๐จ๐ง
โข Reusing Components
โข Children Props
โข Composition vs Inheritance
๐๐.๐๐ข๐ ๐ก๐๐ซ-๐๐ซ๐๐๐ซ ๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ (๐๐๐)
โข Creating HOCs
โข Using HOCs for Reusability
๐๐.๐๐๐ง๐๐๐ซ ๐๐ซ๐จ๐ฉ๐ฌ
โข Using Render Props Pattern
๐๐.๐๐๐๐๐ญ ๐๐จ๐ฎ๐ญ๐๐ซ
โข
โข
โข
โข
โข Route Parameters
๐๐.๐๐๐ฏ๐ข๐ ๐๐ญ๐ข๐จ๐ง
โข useHistory Hook
โข useLocation Hook
๐๐ญ๐๐ญ๐ ๐๐๐ง๐๐ ๐๐ฆ๐๐ง๐ญ
๐๐.๐๐จ๐ง๐ญ๐๐ฑ๐ญ ๐๐๐
โข Creating Context
โข useContext Hook
๐๐.๐๐๐๐ฎ๐ฑ
โข Actions
โข Reducers
โข Store
โข connect Function (React-Redux)
๐๐.๐
๐จ๐ซ๐ฆ๐ฌ
โข Handling Form Data
โข Controlled Components
โข Uncontrolled Components
๐๐.๐๐ข๐๐ ๐๐๐๐๐๐ญ๐ฌ
โข useEffect for Data Fetching
โข useEffect Cleanup
๐๐.๐๐๐๐ ๐๐๐ช๐ฎ๐๐ฌ๐ญ๐ฌ
โข Fetch API
โข Axios Library
๐๐ซ๐ซ๐จ๐ซ ๐๐๐ง๐๐ฅ๐ข๐ง๐
๐๐.๐๐ซ๐ซ๐จ๐ซ ๐๐จ๐ฎ๐ง๐๐๐ซ๐ข๐๐ฌ
โข componentDidCatch (Class Components)
โข ErrorBoundary Component (Functional
Components)
๐๐.๐๐๐ฌ๐ญ๐ข๐ง๐
โข Jest Testing Framework
โข React Testing Library
๐๐.๐๐ฉ๐ญ๐ข๐ฆ๐ข๐ณ๐๐ญ๐ข๐จ๐ง
โข Memoization
โข Profiling and Performance Monitoring
๐๐. ๐๐ฎ๐ข๐ฅ๐ ๐๐ง๐ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
โข Create React App (CRA)
โข Production Builds
โข Deployment Strategies
๐ ๐ซ๐๐ฆ๐๐ฐ๐จ๐ซ๐ค๐ฌ ๐๐ง๐ ๐๐ข๐๐ซ๐๐ซ๐ข๐๐ฌ
๐๐.๐๐ญ๐ฒ๐ฅ๐ข๐ง๐ ๐๐ข๐๐ซ๐๐ซ๐ข๐๐ฌ
โข Styled-components
โข CSS Modules
๐๐.๐๐ญ๐๐ญ๐ ๐๐๐ง๐๐ ๐๐ฆ๐๐ง๐ญ ๐๐ข๐๐ซ๐๐ซ๐ข๐๐ฌ
โข Redux
โข MobX
๐๐.๐๐จ๐ฎ๐ญ๐ข๐ง๐ ๐๐ข๐๐ซ๐๐ซ๐ข๐๐ฌ
โข React Router
โข Reach Router
- Program to find longest word in a given sentence ?
- How to check whether a string is palindrome or not ?
- Write a program to remove duplicates from an array ?
- Program to find Reverse of a string without using built-in method ?
- Find the max count of consecutive 1โs in an array ?
- Find the factorial of given number ?
- Given 2 arrays that are sorted [0,3,4,31] and [4,6,30]. Merge them and sort [0,3,4,4,6,30,31] ?
- Create a function which will accepts two arrays arr1 and arr2. The function should return true if every value in arr1 has its corresponding value squared in array2. The frequency of values must be same.
- Given two strings. Find if one string can be formed by rearranging the letters of other string.
- Write logic to get unique objects from below array ? I/P: [{name: "sai"},{name:"Nang"},{name: "sai"},{name:"Nang"},{name: "111111"}]; O/P: [{name: "sai"},{name:"Nang"}{name: "111111"}
- Write a JavaScript program to find the maximum number in an array.
- Write a JavaScript function that takes an array of numbers and returns a new array with only the even numbers.
- Write a JavaScript function to check if a given number is prime.
- Write a JavaScript program to find the largest element in a nested array. [[3, 4, 58], [709, 8, 9, [10, 11]], [111, 2]]
- Write a JavaScript function that returns the Fibonacci sequence up to a given number of terms.
- Given a string, write a javascript function to count the occurrences of each character in the string.
- Write a javascript function that sorts an array of numbers in ascending order.
- Write a javascript function that sorts an array of numbers in descending order.
- Write a javascript function that reverses the order of words in a sentence without using the built-in reverse() method.
- Implement a javascript function that flattens a nested array into a single-dimensional array.
<!--------------------------------------------------------------->
- Fundamentals: Start with the basics - variables, data types, and operators.
- Functions: Dive deep into functions, understanding scope, closures, and the 'this' keyword.
- ES6 Features: Get comfortable with arrow functions, destructuring, spread/rest operators, and template literals.
- Async JavaScriptโ: Promises and async/await for handling asynchronous operations.
- DOM Manipulation: Know how to interact with the Document Object Model (DOM) effectively.
- Event Handling: Learn about event listeners, event delegation, and the event object.
- Prototypes and Classes: Understand JavaScript's prototypal inheritance and ES6 classes.
- Closures: Master this concept, as it's often tested in interviews.
- Module Systems: Explore CommonJS, AMD, and ES6 modules.
- AJAX and Fetch API: Learn how to make asynchronous HTTP requests.
- Design Patterns: Know the most common patterns like Singleton, Observer, and Module.
- JSON: Understand JSON parsing and stringify.
- Error Handling: Learn how to handle errors gracefully with try...catch.
- Data Structures: Arrays, objects, maps, and sets are essential.
- Functional Programming: Concepts like map, filter, and reduce are valuable.
- Build Tools: Grasp Webpack and Babel for bundling and transpiling.
- Testing: Explore testing frameworks like Jest and Mocha.
- Debugging: Proficiency with browser developer tools is a must.
- ESLint and Code Style: Adhere to clean code practices.
- Security: Understand common web security vulnerabilities (e.g., XSS, CSRF).
- Promises and Async/Await: Master asynchronous programming.
- Modern JavaScript Frameworks: Learn a popular framework like React, Angular, or Vue.js.
- Working with APIs: Know how to integrate external APIs into your applications.
- Documentation: Keep your code well-documented for clarity.
- Automation: Grasp task runners like Grunt and Gulp.
- Progressive Web Apps (PWAs): Understand PWA concepts and service workers.
- Web Performance: Optimize your code for speed and efficiency.
- ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐๐ป๐ด๐ถ๐ป๐ฒ โณ Understand the engine behind the code how it all works under the hood.
- ๐๐ฎ๐น๐น ๐ฆ๐๐ฎ๐ฐ๐ธ & ๐ ๐ฒ๐บ๐ผ๐ฟ๐ ๐๐ฒ๐ฎ๐ฝ โณ Know where JavaScript stores data critical for memory management.
- ๐๐ ๐ฒ๐ฐ๐๐๐ถ๐ผ๐ป ๐๐ผ๐ป๐๐ฒ๐ ๐ โณ Grasp how JavaScript runs your code step-by-step.
- ๐๐ผ๐ถ๐๐๐ถ๐ป๐ด โณ A must-know for working with variable and function declarations.
- ๐๐น๐ผ๐๐๐ฟ๐ฒ๐ & ๐ฃ๐ฟ๐ผ๐๐ผ๐๐๐ฝ๐ฒ๐ โณ Understand scope, encapsulation, and how objects inherit methods.
- ๐ข๐ฏ๐ท๐ฒ๐ฐ๐-๐ข๐ฟ๐ถ๐ฒ๐ป๐๐ฒ๐ฑ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด (๐ข๐ข๐ฃ) โณ Build applications that scale and remain maintainable.
- ๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป๐ฎ๐น ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด (๐๐ฃ) โณ Embrace immutability, pure functions.
- ๐ ๐ผ๐ฑ๐๐น๐ฒ๐ ๐ถ๐ป ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ โณ Organise and reuse code like a pro.
- ๐๐ฟ๐ฟ๐ผ๐ฟ ๐๐ฎ๐ป๐ฑ๐น๐ถ๐ป๐ด โณ Develop robust solutions with proper error management.
- ๐๐ฎ๐๐ฎ ๐ฆ๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ๐ & ๐๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ๐ โณ Solidify your fundamentals to tackle technical interviews with confidence.
- What is React?
- What is useMemo ?
- What are the features of React ?
- What is JSX ?
- What is DOM ?
- What is Virtual Dom ?
- What is component life cycle of React class component ?
- What are fragments in react ?
- What are props in react ?
- What are synthetic events in react ?
- What are the difference between Package.json and Package.lock.json ?
- What are the differences between client side and server side rendering ?
- What is state in Reactjs?
- What are props ?
- What are the differences between State and Props in react ?
- What is props drilling ?
- What are the disadvantages of props drilling and How we can avoid props drilling ?
- What are Pure components in React ?
- Whatare Refโs in React?
- What is meant by forward ref ?
- What are Error boundaries ?
- What are Higher order components in react ?
- What are the differences between controlled and uncontrolled components ?
- What is useCallback ?
- What are the differences between useMemo and useCallback ?
- What are keys in React ?
- What is Lazy loading in React ?
- What is suspense in React ?
- What are custom hooks ?
- What is useReducer hook ?
- What are Portals in react ?
- What is context in react ?
- Practical question: Give an example of context api usage ?
- What is the purpose of callback function as an argument of setState()?
- Practical question: create a custom hook for increment/decrement counter ?
- Which lifecycle hooks in class component are replaced with useEffect in functional components ?
- What is Strict mode in react ?
- What are the different ways to pass data from child component to parent component in react ?
- Practical question: How to send data from child to parent using callback functions ?
- Practical question: How to send the data from child component to parent using useRef ?
<!---------------------------------->
- What is the difference between 'Pass by Value' and 'Pass by Reference'?
- What is the difference between map and filter ?
- What is the difference between map() and forEach()
- What are the differences between call(), apply() and bind() ?
- List out some key features of ES6 ?
- Whatโs the spread operator in javascript ?
- What is rest operator in javascript ?
- What is temporal dead zone ?
- What is a polyfill in javascript ?
- What is prototype in javascript ?
- What is IIFE ?
- What are the different datatypes in javascript ?
- What is authentication vs authorization ?
- Difference between null and undefined ?
- What is the output of 3+2+โ7โ ?
- Slice vs Splice in javascript ?
- What is destructuring ?
- What is setTimeOut in javascript ?
- What is setInterval in javascript ?
- What are Promises in javascript ?
- What is a closure ?
- What are callbacks in javascript ?
- What are Higher Order Functions in javascript ?
- What is the difference between == and === in javascript ?
- What is Hoisting ?
- What are the differences let, var and const ?
- What are limitations of arrow functions?
- What is the difference between Shallow copy and deep copy ?
- What is event bubbling
- What is event capturing ?
- What is this in javascript and How it behaves in various scenarios ?
- How do you optimize the performance of application
- What is meant by debouncing and throttling?
Here are 32 questions most asked DSA questions that you should visit
If you are preparing to switch jobs.
- Reverse a linked list
- Find the middle element of a linked list
- Detect a cycle in a linked list
- Find the intersection point of two linked lists
- Check if a binary tree is a binary search tree (BST)
- Find the largest/smallest element in an array
- Implement depth-first search (DFS) on a graph
- Implement breadth-first search (BFS) on a graph
- Implement binary search in an array
- Find the kth smallest/largest element in an array
- Find the longest common subsequence of two strings
- Implement merge sort
- Implement quick sort
- Implement Dijkstra's algorithm for the shortest path
- Find the longest palindrome substring in a string
- Find the median of two sorted arrays
- Check if two strings are anagrams of each other
- Implement a trie (prefix tree)
- Implement an LRU (Least Recently Used) Cache
- Find all permutations of a string
- Implement a stack using arrays/linked list
- Implement a queue using arrays/linked list
- Implement a priority queue
- Implement Kruskal's algorithm for minimum spanning tree
- Implement Prim's algorithm for minimum spanning tree
- Count the number of inversions in an array
- Find the shortest path in a maze
- Find all subsets of a set
- Find the longest substring without repeating characters
- Implement the KnuthโMorrisโPratt (KMP) algorithm for string matching
- Implement the Rabin-Karp algorithm for string matching
- Implement the Josephus Problem
Top comments (0)