<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aadil Siddiqui  on Medium]]></title>
        <description><![CDATA[Stories by Aadil Siddiqui  on Medium]]></description>
        <link>https://medium.com/@aaadil2004?source=rss-e80e123c6215------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XoK2z8_9Bu8bLxMi</url>
            <title>Stories by Aadil Siddiqui  on Medium</title>
            <link>https://medium.com/@aaadil2004?source=rss-e80e123c6215------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 06:43:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aaadil2004/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[200 CSS Interview Questions Every Intern and SDE-1 Must Know]]></title>
            <link>https://medium.com/@aaadil2004/200-css-interview-questions-every-intern-and-sde-1-must-know-93c53c1ac2f1?source=rss-e80e123c6215------2</link>
            <guid isPermaLink="false">https://medium.com/p/93c53c1ac2f1</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Aadil Siddiqui ]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 16:48:26 GMT</pubDate>
            <atom:updated>2025-09-09T16:48:26.603Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS Interview Questions — Comprehensive List</h3><h3>CSS Fundamentals &amp; Basics (Q1–20)</h3><ol><li>What is CSS and what does it stand for?</li><li>What are the different ways to include CSS in HTML?</li><li>What is CSS specificity and how is it calculated?</li><li>What is the CSS cascade and inheritance?</li><li>What are CSS selectors and their types?</li><li>What is the difference between class and ID selectors?</li><li>What are pseudo-classes and pseudo-elements?</li><li>What is the universal selector (*)?</li><li>What are attribute selectors?</li><li>What is the difference between margin and padding?</li><li>What is the CSS box model?</li><li>What are CSS units (px, em, rem, %, vw, vh)?</li><li>What is the difference between absolute and relative units?</li><li>What are CSS custom properties (CSS variables)?</li><li>What is the difference between display: none and visibility: hidden?</li><li>What are CSS comments and how to write them?</li><li>What is the !important declaration?</li><li>What is CSS reset and normalize?</li><li>What are vendor prefixes?</li><li>What is progressive enhancement in CSS?</li></ol><h3>Layout &amp; Positioning (Q21–40)</h3><ol><li>What are the different position values in CSS?</li><li>What is the difference between static, relative, absolute, and fixed positioning?</li><li>What is sticky positioning?</li><li>What is the z-index property?</li><li>What are floats and how do they work?</li><li>What is clearfix and why is it needed?</li><li>What is the difference between block, inline, and inline-block?</li><li>What is CSS Flexbox?</li><li>What are the main properties of flex container?</li><li>What are the main properties of flex items?</li><li>What is CSS Grid?</li><li>What is the difference between Flexbox and Grid?</li><li>What are grid lines, tracks, and areas?</li><li>What is the fr unit in CSS Grid?</li><li>What are CSS media queries?</li><li>What is mobile-first vs desktop-first approach?</li><li>What are breakpoints in responsive design?</li><li>What is the viewport meta tag’s relationship with CSS?</li><li>What are CSS logical properties?</li><li>What is container queries?</li></ol><h3>Typography &amp; Text (Q41–50)</h3><ol><li>What are web fonts and how to use them?</li><li>What is the difference between serif and sans-serif?</li><li>What are font stacks?</li><li>What is font-display property?</li><li>What is line-height and its different values?</li><li>What is text-align vs vertical-align?</li><li>What are text-overflow and white-space properties?</li><li>What is word-wrap vs word-break?</li><li>What are CSS text effects (text-shadow, text-stroke)?</li><li>What is font-feature-settings?</li></ol><h3>Colors &amp; Backgrounds (Q51–60)</h3><ol><li>What are the different ways to define colors in CSS?</li><li>What is the difference between RGB, HSL, and HEX?</li><li>What is CSS opacity vs rgba?</li><li>What are CSS gradients (linear and radial)?</li><li>What is the background shorthand property?</li><li>What is background-size and its values?</li><li>What is background-attachment?</li><li>What are multiple backgrounds in CSS?</li><li>What is the currentColor keyword?</li><li>What are CSS blend modes?</li></ol><h3>Animations &amp; Transitions (Q61–70)</h3><ol><li>What are CSS transitions?</li><li>What are CSS animations and keyframes?</li><li>What is the difference between transitions and animations?</li><li>What are animation timing functions?</li><li>What is transform property and its functions?</li><li>What is the difference between 2D and 3D transforms?</li><li>What is animation-fill-mode?</li><li>What is will-change property?</li><li>What are CSS performance considerations for animations?</li><li>What is the prefers-reduced-motion media query?</li></ol><h3>Advanced Selectors &amp; Combinators (Q71–80)</h3><ol><li>What are CSS combinators (descendant, child, sibling)?</li><li>What is the difference between &gt; and space selector?</li><li>What are :nth-child() and :nth-of-type()?</li><li>What are :first-child, :last-child, :only-child?</li><li>What are :not(), :is(), and :where() selectors?</li><li>What are :has() and :focus-within selectors?</li><li>What are ::before and ::after pseudo-elements?</li><li>What is content property and generated content?</li><li>What are CSS counters?</li><li>What are CSS attribute selectors with regex?</li></ol><h3>CSS Architecture &amp; Methodologies (Q81–90)</h3><ol><li>What is BEM methodology?</li><li>What is OOCSS (Object-Oriented CSS)?</li><li>What is SMACSS methodology?</li><li>What is CSS-in-JS?</li><li>What are CSS modules?</li><li>What is atomic CSS/utility-first CSS?</li><li>What are CSS preprocessors (Sass, Less, Stylus)?</li><li>What is PostCSS?</li><li>What is critical CSS?</li><li>What are CSS naming conventions?</li></ol><h3>Performance &amp; Optimization (Q91–100)</h3><ol><li>How to optimize CSS for performance?</li><li>What is CSS minification?</li><li>What are render-blocking resources?</li><li>What is the critical rendering path?</li><li>What is CSS containment?</li><li>What are CSS performance metrics?</li><li>What is tree shaking in CSS?</li><li>What are unused CSS detection tools?</li><li>What is CSS bundling and splitting?</li><li>What are CSS loading strategies?</li></ol><h3>CSS Coding Problems — Questions Only</h3><h3>BASICS (Layout &amp; Positioning) (15 Questions)</h3><ol><li>Center a div horizontally and vertically</li><li>Create a sticky header that changes on scroll</li><li>Build a two-column layout with equal heights</li><li>Create a responsive navigation menu</li><li>Build a card layout with hover effects</li><li>Create a modal/popup with overlay</li><li>Build a sidebar that slides in from the left</li><li>Create a fixed footer at the bottom</li><li>Build a responsive image gallery grid</li><li>Create a dropdown menu with CSS only</li><li>Build a responsive hero section</li><li>Create a parallax scrolling effect</li><li>Build a masonry-style layout</li><li>Create a responsive table</li><li>Build a pricing table with highlighted option</li></ol><h3>INTERMEDIATE (Flexbox &amp; Grid) (15 Questions)</h3><ol><li>Create a flexbox-based navigation bar</li><li>Build a card layout using CSS Grid</li><li>Create a responsive dashboard layout</li><li>Build a photo gallery with CSS Grid</li><li>Create a flexible sidebar layout with Grid</li><li>Build a complex form layout using Grid</li><li>Create a newspaper-style layout</li><li>Build a responsive product grid</li><li>Create a flexible footer with multiple sections</li><li>Build a responsive timeline layout</li><li>Create a kanban board layout</li><li>Build a responsive pricing grid</li><li>Create a flexible blog layout</li><li>Build a complex header with multiple sections</li><li>Create a responsive tile layout</li></ol><h3>ADVANCED (Animations &amp; Effects) (10 Questions)</h3><ol><li>Create a loading spinner animation</li><li>Build a smooth page transition effect</li><li>Create a hamburger menu animation</li><li>Build a typewriter text effect</li><li>Create a parallax card hover effect</li><li>Build a morphing button animation</li><li>Create a CSS-only image carousel</li><li>Build a floating action button with menu</li><li>Create a progress bar animation</li><li>Build a 3D flip card effect</li></ol><h3>RESPONSIVE DESIGN (10 Questions)</h3><ol><li>Create a mobile-first responsive layout</li><li>Build a responsive typography system</li><li>Create adaptive images with art direction</li><li>Build a responsive data visualization</li><li>Create a responsive email template</li><li>Build a responsive dashboard</li><li>Create a responsive navigation pattern</li><li>Build a responsive form layout</li><li>Create a responsive landing page</li><li>Build a responsive component library</li></ol><h3>MODERN CSS FEATURES (10 Questions)</h3><ol><li>Create a dark/light theme with CSS custom properties</li><li>Build a component with CSS container queries</li><li>Create a layout using CSS logical properties</li><li>Build a modern button component system</li><li>Create a CSS Grid subgrid layout</li><li>Build a component with CSS cascade layers</li><li>Create a layout using CSS aspect-ratio</li><li>Build a scroll-driven animation</li><li>Create a component with CSS :has() selector</li><li>Build a modern form with CSS accent-color</li></ol><h3>CSS Concepts Deep Dive</h3><h3>Box Model &amp; Layout (Q101–110)</h3><ol><li>Explain box-sizing: border-box vs content-box</li><li>What is margin collapsing and how to prevent it?</li><li>What is the containing block concept?</li><li>What is normal document flow?</li><li>What is formatting context (BFC, IFC, GFC, FFC)?</li><li>What is the difference between reflow and repaint?</li><li>What is layout thrashing?</li><li>What is CSS subgrid?</li><li>What is intrinsic vs extrinsic sizing?</li><li>What is aspect-ratio property?</li></ol><h3>Advanced Styling (Q111–120)</h3><ol><li>What are CSS shapes and how to use them?</li><li>What is CSS clip-path property?</li><li>What are CSS filters and backdrop-filters?</li><li>What is CSS mask property?</li><li>What are CSS scroll-behavior and scroll-snap?</li><li>What is overscroll-behavior?</li><li>What are CSS environment variables?</li><li>What is color-scheme property?</li><li>What are CSS cascade layers (@layer)?</li><li>What is CSS nesting?</li></ol><h3>Browser Compatibility &amp; Support (Q121–130)</h3><ol><li>What is graceful degradation vs progressive enhancement?</li><li>What are CSS feature queries (@supports)?</li><li>What is Autoprefixer and how does it work?</li><li>What are polyfills for CSS?</li><li>What is CSS validation?</li><li>What are cross-browser testing strategies?</li><li>What is CSS hacks and why to avoid them?</li><li>What are vendor-specific properties?</li><li>What is CSS standards compliance?</li><li>What are experimental CSS features?</li></ol><h3>CSS Tools &amp; Workflow (Q131–140)</h3><ol><li>What is the difference between Sass and SCSS?</li><li>What are Sass mixins and functions?</li><li>What is PostCSS and its plugins?</li><li>What are CSS linters (stylelint)?</li><li>What is CSS-in-JS vs traditional CSS?</li><li>What are utility-first frameworks (Tailwind)?</li><li>What is CSS component libraries?</li><li>What are CSS design tokens?</li><li>What is CSS testing strategies?</li><li>What are CSS documentation tools?</li></ol><h3>Performance &amp; Optimization Advanced (Q141–150)</h3><ol><li>What is CSS critical path optimization?</li><li>What are CSS render performance best practices?</li><li>What is CSS animation performance?</li><li>What are composite layers in CSS?</li><li>What is CSS paint worklet?</li><li>What are CSS custom paint?</li><li>What is CSS Houdini?</li><li>What are CSS performance profiling tools?</li><li>What is CSS memory usage optimization?</li><li>What are CSS loading performance strategies?</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93c53c1ac2f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[170 HTML Interview Questions Every Intern and SDE-1 Must Know]]></title>
            <link>https://medium.com/@aaadil2004/170-html-interview-questions-every-intern-and-sde-1-must-know-35ce3e187aab?source=rss-e80e123c6215------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ce3e187aab</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Aadil Siddiqui ]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 16:46:01 GMT</pubDate>
            <atom:updated>2025-09-09T16:46:01.735Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML Interview Questions — Comprehensive List</h3><h3>HTML Fundamentals &amp; Basics (Q1–20)</h3><ol><li>What is HTML and what does it stand for?</li><li>What is the structure of an HTML document?</li><li>What are HTML tags, elements, and attributes?</li><li>Difference between HTML elements and HTML tags</li><li>What is the DOCTYPE declaration and why is it important?</li><li>What are semantic HTML elements?</li><li>Difference between block-level and inline elements</li><li>What are void/self-closing elements in HTML?</li><li>What is the difference between id and class attributes?</li><li>What are data attributes in HTML?</li><li>What is the difference between span and div?</li><li>What are HTML entities and when to use them?</li><li>What is the difference between relative and absolute URLs?</li><li>What are meta tags and their importance?</li><li>What is the viewport meta tag?</li><li>What are HTML comments and how to write them?</li><li>What is the difference between HTML and XHTML?</li><li>What are deprecated HTML elements?</li><li>What is the role of the lang attribute?</li><li>What is HTML5 and its new features?</li></ol><h3>HTML5 Semantic Elements (Q21–30)</h3><ol><li>What are HTML5 semantic elements?</li><li>What is the difference between header, nav, main, and footer?</li><li>What are section and article elements?</li><li>When to use aside element?</li><li>What is the figure and figcaption element?</li><li>What are details and summary elements?</li><li>What is the mark element used for?</li><li>What are time and progress elements?</li><li>What is the difference between b/strong and i/em?</li><li>What are microdata and its attributes?</li></ol><h3>Forms &amp; Input Elements (Q31–40)</h3><ol><li>What are HTML forms and how do they work?</li><li>What are the different input types in HTML5?</li><li>What are form validation attributes?</li><li>What is the difference between GET and POST methods?</li><li>What are fieldset and legend elements?</li><li>What is the difference between name and id in form elements?</li><li>What are label elements and their importance?</li><li>What are placeholder and value attributes?</li><li>What is form enctype attribute?</li><li>What are datalist and option elements?</li></ol><h3>Media Elements (Q41–50)</h3><ol><li>What are audio and video elements in HTML5?</li><li>What are the attributes of video element?</li><li>What is the difference between controls and autoplay?</li><li>What are source elements and why use them?</li><li>What is the poster attribute in video?</li><li>What are track elements for subtitles?</li><li>What is the difference between img and picture elements?</li><li>What are responsive images and srcset attribute?</li><li>What is the sizes attribute in img?</li><li>What is lazy loading in images?</li></ol><h3>Tables &amp; Lists (Q51–60)</h3><ol><li>What is the structure of HTML tables?</li><li>What are thead, tbody, and tfoot elements?</li><li>What is the difference between th and td?</li><li>What are colspan and rowspan attributes?</li><li>What is the scope attribute in tables?</li><li>What are caption elements in tables?</li><li>What are the different types of lists in HTML?</li><li>What is the difference between ol, ul, and dl?</li><li>What are list-style attributes?</li><li>How to create nested lists?</li></ol><h3>Links &amp; Navigation (Q61–70)</h3><ol><li>What are anchor tags and href attribute?</li><li>What is the target attribute in links?</li><li>What are the different values of target attribute?</li><li>What is the rel attribute in links?</li><li>What are internal links and anchors?</li><li>What is the download attribute?</li><li>What are email and telephone links?</li><li>What is the difference between absolute and relative links?</li><li>What are breadcrumb navigation patterns?</li><li>What is skip navigation for accessibility?</li></ol><h3>HTML Best Practices &amp; SEO (Q71–80)</h3><ol><li>What are HTML best practices?</li><li>What is semantic HTML and its benefits?</li><li>How to optimize HTML for SEO?</li><li>What are Open Graph meta tags?</li><li>What are Twitter Card meta tags?</li><li>What is structured data in HTML?</li><li>What are canonical links?</li><li>What is the robots meta tag?</li><li>What are hreflang attributes?</li><li>What is page hierarchy and heading structure?</li></ol><h3>Accessibility (Q81–90)</h3><ol><li>What is web accessibility in HTML?</li><li>What are ARIA attributes?</li><li>What is the alt attribute and its importance?</li><li>What are role attributes?</li><li>What is keyboard navigation support?</li><li>What are focus indicators?</li><li>What is color contrast in web accessibility?</li><li>What are screen readers and HTML compatibility?</li><li>What is semantic markup for accessibility?</li><li>What are accessibility testing tools?</li></ol><h3>Performance &amp; Optimization (Q91–100)</h3><ol><li>How to optimize HTML for performance?</li><li>What is minification of HTML?</li><li>What is lazy loading and how to implement it?</li><li>What are resource hints (preload, prefetch, preconnect)?</li><li>What is critical rendering path?</li><li>What is the impact of DOM size on performance?</li><li>What are web fonts optimization techniques?</li><li>What is image optimization in HTML?</li><li>What are Content Delivery Networks (CDN) for HTML?</li><li>What are Progressive Web Apps (PWA) HTML requirements?</li></ol><h3>HTML Coding Problems — Questions Only</h3><h3>BASICS (10 Questions)</h3><ol><li>Create a basic HTML5 document structure</li><li>Build a simple navigation menu with nested dropdowns</li><li>Create a contact form with all input types</li><li>Build a responsive image gallery</li><li>Create a table with merged cells and proper headers</li><li>Build a multi-level nested list</li><li>Create a modal dialog using only HTML and CSS</li><li>Build a timeline layout with semantic HTML</li><li>Create an accessible skip navigation link</li><li>Build a breadcrumb navigation component</li></ol><h3>INTERMEDIATE (Layout &amp; Structure) (10 Questions)</h3><ol><li>Create a newspaper-style layout with multiple columns</li><li>Build a card-based layout with hover effects</li><li>Create a responsive grid system using CSS Grid</li><li>Build a sticky header with smooth scrolling navigation</li><li>Create a testimonial slider with semantic markup</li><li>Build a pricing table with highlighted features</li><li>Create a FAQ section with collapsible content</li><li>Build a portfolio showcase with filtering</li><li>Create a blog layout with sidebar</li><li>Build a landing page with hero section and CTA</li></ol><h3>FORMS &amp; VALIDATION (10 Questions)</h3><ol><li>Create a multi-step form with progress indicator</li><li>Build a login/registration form with validation</li><li>Create a survey form with different question types</li><li>Build a file upload form with drag and drop</li><li>Create a search form with autocomplete suggestions</li><li>Build a booking/reservation form</li><li>Create a feedback form with rating system</li><li>Build a newsletter subscription form</li><li>Create a job application form</li><li>Build a payment form (markup only)</li></ol><h3>SEMANTIC &amp; ACCESSIBILITY (10 Questions)</h3><ol><li>Create an accessible data table with sorting</li><li>Build a news article with proper semantic structure</li><li>Create an accessible image carousel</li><li>Build a site footer with proper link organization</li><li>Create an accessible form with error handling</li><li>Build a sidebar with skip links and landmarks</li><li>Create a menu with proper ARIA attributes</li><li>Build an accessible modal with focus management</li><li>Create a progress indicator for multi-step process</li><li>Build a notification/alert system</li></ol><h3>ADVANCED &amp; MODERN HTML (10 Questions)</h3><ol><li>Create a custom video player interface</li><li>Build a responsive email template</li><li>Create a print-friendly webpage layout</li><li>Build a PWA manifest and service worker setup</li><li>Create structured data markup for SEO</li><li>Build a multi-language website structure</li><li>Create AMP (Accelerated Mobile Pages) markup</li><li>Build a web component with custom elements</li><li>Create a dark/light theme toggle structure</li><li>Build a performance-optimized HTML template</li></ol><h3>HTML5 APIs &amp; Advanced Features</h3><h3>Web APIs (Bonus Questions)</h3><ol><li>What is the Geolocation API?</li><li>What is Local Storage vs Session Storage?</li><li>What is the Canvas element and its uses?</li><li>What are Web Workers in HTML5?</li><li>What is the Drag and Drop API?</li><li>What is the File API?</li><li>What are Web Sockets?</li><li>What is the History API?</li><li>What are Service Workers?</li><li>What is the Intersection Observer API?</li></ol><h3>Modern HTML Features</h3><ol><li>What are Web Components?</li><li>What are Custom Elements?</li><li>What is Shadow DOM?</li><li>What are HTML Templates?</li><li>What is the Picture element?</li><li>What are Container Queries?</li><li>What is the Dialog element?</li><li>What are CSS Custom Properties in HTML?</li><li>What is the Popover API?</li><li>What are View Transitions?</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35ce3e187aab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[50 Express.js Interview Questions Every Intern and SDE-1 Must Know]]></title>
            <link>https://medium.com/@aaadil2004/50-express-js-interview-questions-every-intern-and-sde-1-must-know-d0d4e1ae24b9?source=rss-e80e123c6215------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0d4e1ae24b9</guid>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aadil Siddiqui ]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 17:28:53 GMT</pubDate>
            <atom:updated>2025-08-27T17:28:53.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*lN8iqX-ZTSOx7JHBa0P-YA.jpeg" /></figure><h3>Top 50 Express.js Interview Questions</h3><h3>Express.js Fundamentals (Q1–15)</h3><p><strong>Q1 — What is Express.js and how does it differ from vanilla Node.js?</strong> <strong>Concept/Behavior:</strong> Express.js is a minimal and flexible web application framework for Node.js that provides a robust set of features for web and mobile applications. It simplifies server creation, routing, and middleware handling compared to vanilla Node.js. <strong>Use-cases:</strong> Web applications, REST APIs, microservices, server-side rendering, single-page applications. <strong>Pitfalls:</strong> Additional dependency overhead, potential over-engineering for simple applications, learning curve for beginners. <strong>Interview tip:</strong> Compare Express server setup with vanilla Node.js http module to demonstrate simplicity and features.</p><p><strong>Q2 — How do you install and set up a basic Express.js application?</strong> <strong>Concept/Behavior:</strong> Install via npm, create app instance with express(), define routes, and start server with app.listen(). Basic setup includes middleware for parsing and static files. <strong>Use-cases:</strong> Project initialization, development setup, production deployment. <strong>Pitfalls:</strong> Missing error handling, not setting up proper middleware, security vulnerabilities. <strong>Interview tip:</strong> Show complete setup from npm init to running server with basic middleware.</p><p><strong>Q3 — What is the Express application object and what are its key methods?</strong> <strong>Concept/Behavior:</strong> Created with express(), provides methods like get(), post(), use(), listen(), set(), and all(). Acts as the main application instance. <strong>Use-cases:</strong> Route definition, middleware registration, server configuration, application settings. <strong>Pitfalls:</strong> Incorrect method chaining, not understanding method execution order. <strong>Interview tip:</strong> Demonstrate key methods and explain their purposes with practical examples.</p><p><strong>Q4 — How does Express.js handle the request-response cycle?</strong> <strong>Concept/Behavior:</strong> Express receives HTTP requests, passes them through middleware chain, matches routes, executes handlers, and sends responses. Uses req/res objects enhanced with Express features. <strong>Use-cases:</strong> HTTP request processing, middleware execution, response generation. <strong>Pitfalls:</strong> Not calling next(), hanging requests, improper error handling. <strong>Interview tip:</strong> Explain the complete cycle from request receipt to response sending.</p><p><strong>Q5 — What are the advantages of using Express.js over other Node.js frameworks?</strong> <strong>Concept/Behavior:</strong> Minimal overhead, large ecosystem, flexibility, extensive middleware, easy learning curve, strong community support. <strong>Use-cases:</strong> Rapid development, scalable applications, API development. <strong>Pitfalls:</strong> Can become complex with large applications, requires careful architecture decisions. <strong>Interview tip:</strong> Compare with frameworks like Koa, Fastify, or NestJS highlighting Express strengths.</p><h3>Routing in Express.js (Q6–15)</h3><p><strong>Q6 — How do you define routes in Express.js?</strong> <strong>Concept/Behavior:</strong> Use HTTP method functions (app.get(), app.post(), app.put(), app.delete()) or app.route() for chaining. Routes defined with path and handler function. <strong>Use-cases:</strong> API endpoints, web page routing, RESTful services. <strong>Pitfalls:</strong> Route order matters, conflicting routes, missing route handlers. <strong>Interview tip:</strong> Show different routing patterns and explain route matching.</p><p><strong>Q7 — What are route parameters and how do you use them?</strong> <strong>Concept/Behavior:</strong> Dynamic segments in routes defined with colon (:param). Accessed via req.params object. Support for optional and wildcard parameters. <strong>Use-cases:</strong> User profiles, resource IDs, dynamic content, REST API parameters. <strong>Pitfalls:</strong> Parameter validation, type coercion, special characters in parameters. <strong>Interview tip:</strong> Demonstrate route parameters with validation and error handling.</p><p><strong>Q8 — How do you handle query strings in Express.js?</strong> <strong>Concept/Behavior:</strong> Query parameters automatically parsed into req.query object. Support for arrays and nested objects in query strings. <strong>Use-cases:</strong> Filtering, pagination, search parameters, optional parameters. <strong>Pitfalls:</strong> Type conversion, malicious query injection, large query strings. <strong>Interview tip:</strong> Show query parameter handling with validation and default values.</p><p><strong>Q9 — What are route handlers and how can you use multiple handlers?</strong> <strong>Concept/Behavior:</strong> Functions that process requests for specific routes. Can chain multiple handlers using next() or pass array of handlers. <strong>Use-cases:</strong> Authentication checks, logging, validation, modular request processing. <strong>Pitfalls:</strong> Forgetting next() calls, handler execution order, error propagation. <strong>Interview tip:</strong> Demonstrate multiple handlers with authentication and validation examples.</p><p><strong>Q10 — How do you implement route patterns and wildcards?</strong> <strong>Concept/Behavior:</strong> Use pattern matching with wildcards (*), optional parameters (?), and regular expressions for complex routing. <strong>Use-cases:</strong> Catch-all routes, flexible URL structures, legacy URL support. <strong>Pitfalls:</strong> Overly complex patterns, performance with many patterns, route conflicts. <strong>Interview tip:</strong> Show practical examples of pattern matching and regex routes.</p><p><strong>Q11 — What is app.route() and when would you use it?</strong> <strong>Concept/Behavior:</strong> Creates chainable route handlers for single path. Allows multiple HTTP methods on same route with different handlers. <strong>Use-cases:</strong> RESTful API endpoints, CRUD operations, method-specific logic. <strong>Pitfalls:</strong> Code organization complexity, method handler conflicts. <strong>Interview tip:</strong> Compare app.route() with separate method definitions for REST endpoints.</p><p><strong>Q12 — How do you organize routes in large Express applications?</strong> <strong>Concept/Behavior:</strong> Use separate route files, express.Router(), modular structure, route grouping by feature or version. <strong>Use-cases:</strong> Large applications, team collaboration, maintainable code, API versioning. <strong>Pitfalls:</strong> Circular dependencies, route conflicts, middleware inheritance issues. <strong>Interview tip:</strong> Show modular route organization with Router and file structure.</p><p><strong>Q13 — What are Express.js routers and how do they work?</strong> <strong>Concept/Behavior:</strong> Mini-applications that handle routing and middleware for specific paths. Created with express.Router() and mounted with app.use(). <strong>Use-cases:</strong> Modular routing, API versioning, feature-based organization, middleware isolation. <strong>Pitfalls:</strong> Nested routing complexity, middleware scope confusion, router mounting issues. <strong>Interview tip:</strong> Demonstrate router creation, middleware, and mounting with practical example.</p><p><strong>Q14 — How do you implement nested routing in Express.js?</strong> <strong>Concept/Behavior:</strong> Mount routers within other routers or use path prefixes. Combine multiple router instances for hierarchical routing. <strong>Use-cases:</strong> Complex applications, API versioning, admin panels, multi-tenant applications. <strong>Pitfalls:</strong> Path resolution complexity, middleware inheritance, route conflicts. <strong>Interview tip:</strong> Show nested router example with real-world API structure.</p><p><strong>Q15 — How do you handle route-specific middleware in Express.js?</strong> <strong>Concept/Behavior:</strong> Apply middleware to specific routes or route groups. Use middleware functions in route definitions or router.use(). <strong>Use-cases:</strong> Authentication for protected routes, logging specific endpoints, route validation. <strong>Pitfalls:</strong> Middleware execution order, scope limitations, performance overhead. <strong>Interview tip:</strong> Demonstrate route-specific authentication and validation middleware.</p><h3>Middleware in Express.js (Q16–30)</h3><p><strong>Q16 — What is middleware in Express.js and how does it work?</strong> <strong>Concept/Behavior:</strong> Functions that execute during request-response cycle with access to req, res, and next. Can modify objects, execute code, end cycle, or call next middleware. <strong>Use-cases:</strong> Authentication, logging, parsing, error handling, CORS, validation. <strong>Pitfalls:</strong> Order dependency, forgetting next() calls, error handling complexity. <strong>Interview tip:</strong> Explain middleware stack and execution flow with examples.</p><p><strong>Q17 — What are the different types of middleware in Express.js?</strong> <strong>Concept/Behavior:</strong> Application-level, router-level, error-handling, built-in, and third-party middleware. Each serves different purposes in request processing. <strong>Use-cases:</strong> Different layers of request processing, modular functionality, error handling. <strong>Pitfalls:</strong> Middleware type confusion, incorrect usage patterns, order issues. <strong>Interview tip:</strong> Categorize middleware types with examples of each category.</p><p><strong>Q18 — How do you create custom middleware in Express.js?</strong> <strong>Concept/Behavior:</strong> Functions with (req, res, next) signature. Can modify request/response, perform operations, and control flow with next(). <strong>Use-cases:</strong> Custom authentication, logging, validation, rate limiting, request processing. <strong>Pitfalls:</strong> Not calling next(), blocking operations, memory leaks, error handling. <strong>Interview tip:</strong> Create practical custom middleware like request logger or simple authentication.</p><p><strong>Q19 — What are built-in middleware functions in Express.js?</strong> <strong>Concept/Behavior:</strong> Express.static for static files, express.json() for JSON parsing, express.urlencoded() for form data, express.raw(), express.text(). <strong>Use-cases:</strong> Static file serving, request body parsing, common functionality. <strong>Pitfalls:</strong> Incorrect configuration, security issues, performance implications. <strong>Interview tip:</strong> Demonstrate each built-in middleware with configuration options.</p><p><strong>Q20 — How do you handle error middleware in Express.js?</strong> <strong>Concept/Behavior:</strong> Error-handling middleware has 4 parameters (err, req, res, next). Must be defined after other middleware and routes. <strong>Use-cases:</strong> Centralized error handling, logging, user-friendly error responses, debugging. <strong>Pitfalls:</strong> Not properly propagating errors, exposing sensitive information, placement order. <strong>Interview tip:</strong> Show custom error handling middleware with async error handling.</p><p><strong>Q21 — What is the next() function and how do you use it?</strong> <strong>Concept/Behavior:</strong> Function to pass control to next middleware. Can pass errors with next(err) or skip middleware with next(‘route’). <strong>Use-cases:</strong> Middleware chaining, error propagation, conditional processing, flow control. <strong>Pitfalls:</strong> Forgetting to call next(), multiple next() calls, improper error passing. <strong>Interview tip:</strong> Demonstrate different next() usage patterns and common mistakes.</p><p><strong>Q22 — How do you implement authentication middleware?</strong> <strong>Concept/Behavior:</strong> Verify user credentials, tokens, or sessions. Set user context and protect routes. Can be applied globally or per route. <strong>Use-cases:</strong> Protected routes, user identification, role-based access, API security. <strong>Pitfalls:</strong> Security vulnerabilities, token validation, session management, unauthorized access. <strong>Interview tip:</strong> Show JWT authentication middleware with protected route example.</p><p><strong>Q23 — How do you implement logging middleware?</strong> <strong>Concept/Behavior:</strong> Capture request details, response status, timing, and errors. Use logging libraries like Morgan, Winston, or custom solutions. <strong>Use-cases:</strong> Debugging, monitoring, analytics, audit trails, performance tracking. <strong>Pitfalls:</strong> Performance impact, log size management, sensitive data logging, async logging. <strong>Interview tip:</strong> Implement custom logging middleware and show Morgan integration.</p><p><strong>Q24 — What is CORS middleware and how do you implement it?</strong> <strong>Concept/Behavior:</strong> Cross-Origin Resource Sharing middleware sets appropriate headers for browser security. Handle preflight requests and origin validation. <strong>Use-cases:</strong> API servers, SPAs, cross-domain requests, browser security compliance. <strong>Pitfalls:</strong> Overly permissive CORS, complex preflight handling, security risks. <strong>Interview tip:</strong> Implement custom CORS middleware and show cors package usage.</p><p><strong>Q25 — How do you implement rate limiting middleware?</strong> <strong>Concept/Behavior:</strong> Limit requests per time window per client. Track request counts using memory, database, or Redis. Return appropriate error responses. <strong>Use-cases:</strong> API protection, DDoS prevention, resource management, abuse prevention. <strong>Pitfalls:</strong> Memory usage, distributed systems, false positives, bypass attempts. <strong>Interview tip:</strong> Create simple rate limiting middleware and mention express-rate-limit package.</p><p><strong>Q26 — How do you handle request validation middleware?</strong> <strong>Concept/Behavior:</strong> Validate request body, parameters, and headers using validation libraries or custom logic. Return validation errors appropriately. <strong>Use-cases:</strong> Data integrity, security, API contracts, user input validation. <strong>Pitfalls:</strong> Bypassing validation, complex validation logic, error handling, performance. <strong>Interview tip:</strong> Demonstrate validation middleware using Joi or express-validator.</p><p><strong>Q27 — What is middleware order and why is it important?</strong> <strong>Concept/Behavior:</strong> Middleware executes in order of definition. Order affects functionality, security, and performance. Some middleware must come before others. <strong>Use-cases:</strong> Proper request processing, security layers, parsing before validation. <strong>Pitfalls:</strong> Incorrect order causing failures, security bypasses, parsing issues. <strong>Interview tip:</strong> Show examples of middleware order problems and proper sequencing.</p><p><strong>Q28 — How do you implement compression middleware?</strong> <strong>Concept/Behavior:</strong> Compress response data using gzip or deflate to reduce bandwidth. Configure compression levels and file type filters. <strong>Use-cases:</strong> Performance optimization, bandwidth reduction, faster load times. <strong>Pitfalls:</strong> CPU overhead, already compressed files, browser compatibility. <strong>Interview tip:</strong> Demonstrate compression setup and explain performance benefits.</p><p><strong>Q29 — How do you handle file upload middleware?</strong> <strong>Concept/Behavior:</strong> Parse multipart/form-data using middleware like Multer. Handle file storage, validation, and size limits. <strong>Use-cases:</strong> Image uploads, document processing, file sharing, profile pictures. <strong>Pitfalls:</strong> Security vulnerabilities, file validation, storage management, memory usage. <strong>Interview tip:</strong> Show Multer configuration with file validation and error handling.</p><p><strong>Q30 — How do you implement security middleware in Express.js?</strong> <strong>Concept/Behavior:</strong> Use security-focused middleware for headers, CSRF protection, XSS prevention, and other security measures. <strong>Use-cases:</strong> Application security, compliance, vulnerability prevention, secure headers. <strong>Pitfalls:</strong> Misconfiguration, performance impact, false security sense, compatibility issues. <strong>Interview tip:</strong> Demonstrate helmet.js usage and custom security middleware.</p><h3>Request and Response Handling (Q31–40)</h3><p><strong>Q31 — How do you access request data in Express.js?</strong> <strong>Concept/Behavior:</strong> Use req object properties: req.body, req.params, req.query, req.headers, req.cookies, req.files for different data types. <strong>Use-cases:</strong> Form processing, API endpoints, file uploads, authentication data. <strong>Pitfalls:</strong> Undefined properties, type conversion, malicious input, missing middleware. <strong>Interview tip:</strong> Show examples of accessing different types of request data.</p><p><strong>Q32 — How do you send responses in Express.js?</strong> <strong>Concept/Behavior:</strong> Use res object methods: res.send(), res.json(), res.render(), res.redirect(), res.download(), res.status() for different response types. <strong>Use-cases:</strong> API responses, file downloads, redirects, template rendering, status codes. <strong>Pitfalls:</strong> Multiple response calls, header conflicts, not ending responses, memory leaks. <strong>Interview tip:</strong> Demonstrate different response methods with appropriate use cases.</p><p><strong>Q33 — How do you handle JSON requests and responses?</strong> <strong>Concept/Behavior:</strong> Use express.json() middleware for parsing JSON requests. Send JSON responses with res.json(). Handle JSON errors and validation. <strong>Use-cases:</strong> REST APIs, AJAX requests, API integrations, data exchange. <strong>Pitfalls:</strong> JSON parsing errors, large payloads, malformed JSON, security issues. <strong>Interview tip:</strong> Show JSON middleware setup and proper JSON response handling.</p><p><strong>Q34 — How do you handle form data in Express.js?</strong> <strong>Concept/Behavior:</strong> Use express.urlencoded() for form data parsing. Handle both URL-encoded and multipart data with appropriate middleware. <strong>Use-cases:</strong> HTML forms, file uploads, user input, web applications. <strong>Pitfalls:</strong> Data validation, file handling, encoding issues, size limits. <strong>Interview tip:</strong> Demonstrate form data handling with validation and error responses.</p><p><strong>Q35 — How do you set and manipulate HTTP headers?</strong> <strong>Concept/Behavior:</strong> Use res.set(), res.header(), res.setHeader() to set headers. Access request headers via req.headers or req.get(). <strong>Use-cases:</strong> Custom headers, authentication, caching, content type, security headers. <strong>Pitfalls:</strong> Header timing, case sensitivity, header size limits, security implications. <strong>Interview tip:</strong> Show custom header handling and security header implementation.</p><p><strong>Q36 — How do you handle cookies in Express.js?</strong> <strong>Concept/Behavior:</strong> Use cookie-parser middleware to parse cookies. Set cookies with res.cookie(), access with req.cookies. Handle signed cookies for security. <strong>Use-cases:</strong> Session management, user preferences, authentication tokens, tracking. <strong>Pitfalls:</strong> Security vulnerabilities, size limits, httpOnly flags, domain/path issues. <strong>Interview tip:</strong> Demonstrate cookie handling with security best practices.</p><p><strong>Q37 — How do you implement file downloads in Express.js?</strong> <strong>Concept/Behavior:</strong> Use res.download(), res.sendFile(), or res.attachment() to send files. Handle file paths, security, and error cases. <strong>Use-cases:</strong> Document downloads, image serving, file sharing, report generation. <strong>Pitfalls:</strong> Path traversal attacks, file permissions, large file handling, memory usage. <strong>Interview tip:</strong> Show secure file download implementation with error handling.</p><p><strong>Q38 — How do you handle redirects in Express.js?</strong> <strong>Concept/Behavior:</strong> Use res.redirect() with optional status codes. Handle both temporary and permanent redirects with proper status codes. <strong>Use-cases:</strong> URL changes, authentication flows, form submissions, SEO redirects. <strong>Pitfalls:</strong> Redirect loops, status code confusion, URL validation, security issues. <strong>Interview tip:</strong> Demonstrate different redirect scenarios with appropriate status codes.</p><p><strong>Q39 — How do you implement content negotiation?</strong> <strong>Concept/Behavior:</strong> Use req.accepts() to determine client preferences. Serve different content types based on Accept headers. <strong>Use-cases:</strong> API versioning, format selection, mobile/web variants, internationalization. <strong>Pitfalls:</strong> Complex logic, fallback handling, performance overhead, client compatibility. <strong>Interview tip:</strong> Show content negotiation for JSON/XML responses or different API versions.</p><p><strong>Q40 — How do you handle request timeouts in Express.js?</strong> <strong>Concept/Behavior:</strong> Implement timeout middleware or use server timeout settings. Handle cleanup and appropriate error responses for timed-out requests. <strong>Use-cases:</strong> Long-running operations, external API calls, database queries, user experience. <strong>Pitfalls:</strong> Resource cleanup, partial responses, client handling, debugging timeouts. <strong>Interview tip:</strong> Demonstrate timeout middleware implementation with cleanup logic.</p><h3>Advanced Express.js Topics (Q41–50)</h3><p><strong>Q41 — How do you implement sessions in Express.js?</strong> <strong>Concept/Behavior:</strong> Use express-session middleware with session stores. Configure session security, expiration, and storage backend. <strong>Use-cases:</strong> User authentication, shopping carts, temporary data, user state management. <strong>Pitfalls:</strong> Memory leaks, session fixation, scalability issues, security vulnerabilities. <strong>Interview tip:</strong> Show session configuration with Redis store and security settings.</p><p><strong>Q42 — How do you serve static files in Express.js?</strong> <strong>Concept/Behavior:</strong> Use express.static() middleware with directory path. Configure virtual paths, caching headers, and security options. <strong>Use-cases:</strong> CSS/JS files, images, downloads, public assets, CDN alternatives. <strong>Pitfalls:</strong> Path traversal attacks, caching issues, performance with many files, security. <strong>Interview tip:</strong> Demonstrate static file serving with security and performance considerations.</p><p><strong>Q43 — How do you implement template engines with Express.js?</strong> <strong>Concept/Behavior:</strong> Configure template engines like EJS, Pug, or Handlebars. Use res.render() to render templates with data. <strong>Use-cases:</strong> Server-side rendering, dynamic HTML, email templates, web applications. <strong>Pitfalls:</strong> XSS vulnerabilities, performance with complex templates, template injection, caching. <strong>Interview tip:</strong> Show template engine setup and data passing with security considerations.</p><p><strong>Q44 — How do you handle WebSockets with Express.js?</strong> <strong>Concept/Behavior:</strong> Integrate WebSocket libraries like Socket.io with Express server. Share sessions and middleware between HTTP and WebSocket. <strong>Use-cases:</strong> Real-time communication, live updates, chat applications, collaborative tools. <strong>Pitfalls:</strong> Scaling issues, connection management, authentication, fallback handling. <strong>Interview tip:</strong> Demonstrate Socket.io integration with Express and session sharing.</p><p><strong>Q45 — How do you implement API versioning in Express.js?</strong> <strong>Concept/Behavior:</strong> Use URL paths, headers, or query parameters for versioning. Organize code with routers and version-specific logic. <strong>Use-cases:</strong> API evolution, backward compatibility, feature rollouts, client migration. <strong>Pitfalls:</strong> Code duplication, maintenance complexity, client confusion, deprecation management. <strong>Interview tip:</strong> Show different versioning strategies with router organization.</p><p><strong>Q46 — How do you handle database integration with Express.js?</strong> <strong>Concept/Behavior:</strong> Connect to databases using drivers or ORMs. Implement connection pooling, error handling, and query optimization. <strong>Use-cases:</strong> Data persistence, user management, content storage, application state. <strong>Pitfalls:</strong> Connection leaks, SQL injection, performance issues, error handling. <strong>Interview tip:</strong> Demonstrate database connection with connection pooling and error handling.</p><p><strong>Q47 — How do you implement testing in Express.js applications?</strong> <strong>Concept/Behavior:</strong> Use testing frameworks like Jest, Mocha with supertest for HTTP testing. Mock dependencies and test middleware, routes, and error handling. <strong>Use-cases:</strong> Quality assurance, regression prevention, CI/CD pipelines, code confidence. <strong>Pitfalls:</strong> Test isolation, async testing, database mocking, test data management. <strong>Interview tip:</strong> Show unit and integration testing examples with supertest.</p><p><strong>Q48 — How do you optimize Express.js application performance?</strong> <strong>Concept/Behavior:</strong> Implement caching, compression, connection pooling, clustering, and profiling. Use APM tools and optimize bottlenecks. <strong>Use-cases:</strong> High-traffic applications, better user experience, resource optimization, scalability. <strong>Pitfalls:</strong> Premature optimization, caching complexity, monitoring overhead, scaling limitations. <strong>Interview tip:</strong> Discuss performance strategies with specific optimization techniques.</p><p><strong>Q49 — How do you implement security best practices in Express.js?</strong> <strong>Concept/Behavior:</strong> Use security middleware, validate inputs, implement authentication, set security headers, and follow OWASP guidelines. <strong>Use-cases:</strong> Production applications, sensitive data protection, compliance, user security. <strong>Pitfalls:</strong> Security through obscurity, incomplete implementation, performance trade-offs, false sense of security. <strong>Interview tip:</strong> Show comprehensive security implementation with multiple layers.</p><p><strong>Q50 — How do you deploy and scale Express.js applications?</strong> <strong>Concept/Behavior:</strong> Use process managers like PM2, implement clustering, configure load balancing, and handle environment variables and logging. <strong>Use-cases:</strong> Production deployment, high availability, performance scaling, maintenance. <strong>Pitfalls:</strong> Process management, session sharing, database connections, monitoring complexity. <strong>Interview tip:</strong> Explain deployment strategies with clustering and process management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0d4e1ae24b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[50 Node.js Interview Questions Every Intern and SDE-1 Must Know]]></title>
            <link>https://medium.com/@aaadil2004/50-node-js-interview-questions-every-intern-and-sde-1-must-know-b2d966bc2643?source=rss-e80e123c6215------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2d966bc2643</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aadil Siddiqui ]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 17:16:27 GMT</pubDate>
            <atom:updated>2025-08-27T17:16:27.374Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Node.js Interview Questions</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IafTcEBbwjc_5DaKpNuOmw.jpeg" /></figure><p><strong>Node.js Fundamentals (Q1–10)</strong></p><p><strong>Q1 — What is Node.js and how does it differ from JavaScript in the browser?</strong> Concept / Behavior: Node.js is a JavaScript runtime built on Chrome’s V8 engine for server-side development. Unlike browser JavaScript, it has access to file system, network APIs, and system-level operations but lacks DOM/BOM APIs. Use-cases: Server applications, APIs, CLI tools, real-time applications, microservices. Pitfalls: Single-threaded nature can cause blocking; CPU-intensive tasks can freeze the event loop. Interview tip: Mention V8 engine, event-driven architecture, and key differences from browser environment.</p><p><strong>Q2 — What is the Event Loop in Node.js?</strong> Concept / Behavior: The event loop is the core mechanism that handles asynchronous operations. It processes callbacks in phases: timers, pending callbacks, idle/prepare, poll, check, close callbacks. Use-cases: Understanding async behavior, debugging performance issues, optimizing I/O operations. Pitfalls: Blocking the event loop with synchronous operations kills performance. Interview tip: Explain the six phases and mention process.nextTick() and Promise microtasks have higher priority.</p><p><strong>Q3 — What is the difference between synchronous and asynchronous operations in Node.js?</strong> Concept / Behavior:</p><ul><li>Synchronous: Blocks execution until operation completes (e.g., fs.readFileSync)</li><li>Asynchronous: Non-blocking, uses callbacks/promises/async-await (e.g., fs.readFile) Use-cases: Use async for I/O operations, sync only for initialization or CLI tools. Pitfalls: Mixing sync operations in async code can cause unexpected blocking. Interview tip: Show examples of both and explain when to use each.</li></ul><p><strong>Q4 — What are modules in Node.js and how do they work?</strong> Concept / Behavior: Node.js uses CommonJS module system. Each file is a module with its own scope. Use require() to import and module.exports/exports to export. Use-cases: Code organization, reusability, dependency management. Pitfalls: Circular dependencies can cause issues; module caching means modules execute only once. Interview tip: Explain CommonJS vs ES6 modules and module resolution algorithm.</p><p><strong>Q5 — What is package.json and what are its key properties?</strong> Concept / Behavior: Manifest file containing project metadata, dependencies, scripts, and configuration. Key properties: name, version, dependencies, devDependencies, scripts, main, engines. Use-cases: Dependency management, project configuration, build scripts, publishing to npm. Pitfalls: Version conflicts, security vulnerabilities in dependencies, bloated node_modules. Interview tip: Mention semantic versioning and difference between dependencies and devDependencies.</p><p><strong>Q6 — What is npm and what are some essential npm commands?</strong> Concept / Behavior: Node Package Manager — default package manager for Node.js. Essential commands: install, uninstall, update, init, run, publish, audit. Use-cases: Installing packages, managing dependencies, running scripts, publishing packages. Pitfalls: Security vulnerabilities, version conflicts, large node_modules size. Interview tip: Mention npm vs yarn vs pnpm differences and npm audit for security.</p><p><strong>Q7 — What is the difference between dependencies and devDependencies?</strong> Concept / Behavior:</p><ul><li>dependencies: Required for production runtime</li><li>devDependencies: Only needed during development/build process Use-cases: Production builds exclude devDependencies to reduce bundle size. Pitfalls: Putting build tools in dependencies increases production bundle size. Interview tip: Give examples like express vs nodemon, and mention — production flag.</li></ul><p><strong>Q8 — What are global and local modules?</strong> Concept / Behavior:</p><ul><li>Global modules: Installed system-wide with -g flag, accessible from anywhere</li><li>Local modules: Installed in project’s node_modules, specific to that project Use-cases: Global for CLI tools, local for project dependencies. Pitfalls: Global modules can cause version conflicts between projects. Interview tip: Explain npx for running packages without global installation.</li></ul><p><strong>Q9 — What is the require() function and how does module resolution work?</strong> Concept / Behavior: require() loads modules synchronously. Resolution order: core modules → file paths → node_modules hierarchy → package.json main field. Use-cases: Importing modules, dynamic module loading. Pitfalls: Synchronous nature can block in some scenarios; path resolution complexity. Interview tip: Explain the module resolution algorithm and require.cache.</p><p><strong>Q10 — What is the difference between CommonJS and ES6 modules in Node.js?</strong> Concept / Behavior:</p><ul><li>CommonJS: require/module.exports, synchronous, dynamic imports</li><li>ES6: import/export, asynchronous, static analysis, tree-shaking support Use-cases: CommonJS for legacy, ES6 for modern applications with better tooling. Pitfalls: Mixing both systems can cause complications; ES6 modules need .mjs or “type”: “module”. Interview tip: Mention top-level await and conditional imports in ES6 modules.</li></ul><p><strong>File System &amp; Streams (Q11–20)</strong></p><p><strong>Q11 — How do you work with the file system in Node.js?</strong> Concept / Behavior: fs module provides sync/async methods for file operations: readFile, writeFile, mkdir, stat, etc. Always prefer async versions. Use-cases: Reading config files, logging, file uploads, data processing. Pitfalls: Sync methods block event loop; missing error handling can crash apps. Interview tip: Show both callback and promise-based approaches (fs.promises).</p><p><strong>Q12 — What are Streams in Node.js and what are their types?</strong> Concept / Behavior: Streams handle data in chunks rather than loading everything into memory. Types: Readable, Writable, Duplex, Transform. Use-cases: Large file processing, real-time data, HTTP requests/responses. Pitfalls: Backpressure issues, memory leaks if not properly handled. Interview tip: Explain pipe() method and stream events (data, end, error).</p><p><strong>Q13 — What is the difference between Readable and Writable streams?</strong> Concept / Behavior:</p><ul><li>Readable: Data source (fs.createReadStream, HTTP requests)</li><li>Writable: Data destination (fs.createWriteStream, HTTP responses) Use-cases: File processing, data transformation, network communication. Pitfalls: Not handling stream events properly can cause memory issues. Interview tip: Show practical examples with file streams and piping.</li></ul><p><strong>Q14 — What is backpressure in streams and how do you handle it?</strong> Concept / Behavior: Backpressure occurs when data is written faster than it can be consumed. Handle with pause/resume or by monitoring highWaterMark. Use-cases: Processing large files, real-time data streams, preventing memory overflow. Pitfalls: Ignoring backpressure leads to memory exhaustion. Interview tip: Explain drain event and proper stream handling patterns.</p><p><strong>Q15 — How do you create custom streams?</strong> Concept / Behavior: Extend stream classes or use simplified constructor approach. Implement _read() for Readable, _write() for Writable, _transform() for Transform. Use-cases: Custom data processing, protocol implementations, data validation. Pitfalls: Incorrect implementation can cause memory leaks or data loss. Interview tip: Show a simple Transform stream example for data manipulation.</p><p><strong>Q16 — What is the Buffer class and when do you use it?</strong> Concept / Behavior: Buffer handles binary data in Node.js. Created from strings, arrays, or allocated directly. Immutable once created. Use-cases: File I/O, network protocols, cryptography, binary data manipulation. Pitfalls: Security issues with uninitialized buffers; encoding/decoding errors. Interview tip: Mention Buffer.from() vs deprecated Buffer() constructor.</p><p><strong>Q17 — How do you handle file uploads in Node.js?</strong> Concept / Behavior: Use multipart/form-data parsing with libraries like multer or formidable. Handle streams for large files. Use-cases: Image uploads, document processing, file sharing applications. Pitfalls: Memory exhaustion with large files, security vulnerabilities, file validation. Interview tip: Mention temporary file handling and cleanup strategies.</p><p><strong>Q18 — What is the path module and why is it important?</strong> Concept / Behavior: Provides utilities for working with file and directory paths in a cross-platform way. Methods: join, resolve, dirname, basename, extname. Use-cases: File operations, module loading, cross-platform path handling. Pitfalls: Manual string concatenation breaks on different OS; security issues with path traversal. Interview tip: Emphasize cross-platform compatibility and security benefits.</p><p><strong>Q19 — How do you watch for file changes in Node.js?</strong> Concept / Behavior: fs.watch() and fs.watchFile() for monitoring file system changes. fs.watch() is more efficient but less reliable. Use-cases: Development tools, configuration reloading, file synchronization. Pitfalls: Platform differences, false positives, performance with large directories. Interview tip: Mention third-party solutions like chokidar for better reliability.</p><p><strong>Q20 — What are symbolic links and how do you handle them?</strong> Concept / Behavior: Symbolic links are file system references to other files/directories. Handle with fs.lstat() vs fs.stat() and fs.readlink(). Use-cases: Package management, deployment, file organization. Pitfalls: Broken links, infinite loops, permission issues. Interview tip: Explain difference between hard and soft links.</p><p><strong>HTTP &amp; Web Servers (Q21–30)</strong></p><p><strong>Q21 — How do you create an HTTP server in Node.js?</strong> Concept / Behavior: Use http.createServer() to create server, listen on port, handle request/response objects. Server inherits from EventEmitter. Use-cases: Web applications, APIs, microservices, proxy servers. Pitfalls: Not handling errors properly, memory leaks, security vulnerabilities. Interview tip: Show basic server setup and mention HTTPS with https module.</p><p><strong>Q22 — What is the difference between req and res objects?</strong> Concept / Behavior:</p><ul><li>req (IncomingMessage): Contains request data — headers, URL, method, body</li><li>res (ServerResponse): Used to send response — headers, status, body Use-cases: Handling HTTP requests, sending responses, middleware processing. Pitfalls: Modifying headers after response starts, not ending responses properly. Interview tip: Mention that both are streams and show common properties/methods.</li></ul><p><strong>Q23 — How do you handle different HTTP methods and routing?</strong> Concept / Behavior: Check req.method and req.url to route requests. Use url.parse() for query parameters. Consider using frameworks like Express. Use-cases: REST APIs, web applications, route-specific logic. Pitfalls: Complex manual routing becomes unmaintainable; security issues with route handling. Interview tip: Show basic routing and mention benefits of using frameworks.</p><p><strong>Q24 — How do you parse request body in Node.js?</strong> Concept / Behavior: Request body comes as stream. Collect chunks and parse based on Content-Type (JSON, form data, etc.). Use-cases: POST/PUT requests, form submissions, API endpoints. Pitfalls: Large payloads can overwhelm memory; malformed data can crash server. Interview tip: Show manual parsing and mention middleware solutions.</p><p><strong>Q25 — What are HTTP headers and how do you work with them?</strong> Concept / Behavior: Headers contain metadata about HTTP request/response. Access via req.headers, set via res.setHeader() or res.writeHead(). Use-cases: Authentication, content type, caching, CORS, custom metadata. Pitfalls: Case sensitivity, header size limits, setting headers after response starts. Interview tip: Mention common headers and security-related ones.</p><p><strong>Q26 — How do you handle cookies in Node.js?</strong> Concept / Behavior: Cookies sent in Cookie header, set via Set-Cookie. Parse manually or use cookie-parser middleware. Use-cases: Session management, user preferences, authentication tokens. Pitfalls: Security issues (XSS, CSRF), size limits, httpOnly and secure flags. Interview tip: Explain cookie attributes and security best practices.</p><p><strong>Q27 — What is middleware and how does it work?</strong> Concept / Behavior: Functions that execute during request-response cycle. Can modify req/res objects, execute code, end cycle, or call next middleware. Use-cases: Authentication, logging, parsing, error handling, CORS. Pitfalls: Order matters; forgetting next() can hang requests; error handling complexity. Interview tip: Show middleware pattern and mention Express.js middleware ecosystem.</p><p><strong>Q28 — How do you implement CORS in Node.js?</strong> Concept / Behavior: Set appropriate headers (Access-Control-Allow-Origin, etc.) to enable cross-origin requests. Handle preflight OPTIONS requests. Use-cases: API servers, SPAs, cross-domain communication. Pitfalls: Overly permissive CORS can be security risk; complex preflight handling. Interview tip: Explain same-origin policy and show manual CORS implementation.</p><p><strong>Q29 — How do you handle HTTP errors and status codes?</strong> Concept / Behavior: Use res.statusCode or res.writeHead() to set status codes. Handle errors gracefully and return appropriate status codes. Use-cases: API error responses, client error handling, debugging. Pitfalls: Not setting appropriate status codes confuses clients; unhandled errors crash server. Interview tip: Mention common status codes and error handling patterns.</p><p><strong>Q30 — What is the difference between HTTP and HTTPS?</strong> Concept / Behavior: HTTPS adds TLS/SSL encryption to HTTP. Use https module, provide certificates. All data encrypted in transit. Use-cases: Secure web applications, API security, protecting sensitive data. Pitfalls: Certificate management, performance overhead, mixed content issues. Interview tip: Explain certificate setup and security benefits.</p><p><strong>Express.js Framework (Q31–40)</strong></p><p><strong>Q31 — What is Express.js and why use it over vanilla Node.js?</strong> Concept / Behavior: Minimal web framework that simplifies HTTP server creation with routing, middleware, templating. Built on top of Node.js http module. Use-cases: Web applications, REST APIs, server-side rendering, microservices. Pitfalls: Additional dependency, learning curve, potential over-engineering for simple apps. Interview tip: Compare Express server setup with vanilla Node.js to show benefits.</p><p><strong>Q32 — How do you set up routing in Express.js?</strong> Concept / Behavior: Use app.get(), app.post(), etc. for HTTP methods. Support for route parameters, query strings, and route patterns. Use-cases: REST API endpoints, web page routing, parameter-based URLs. Pitfalls: Route order matters; conflicting routes can cause issues. Interview tip: Show route parameters (:id) and query string handling.</p><p><strong>Q33 — What are Express.js middlewares and how do you use them?</strong> Concept / Behavior: Functions with access to req, res, next. Execute in order defined. Types: application-level, router-level, error-handling, built-in, third-party. Use-cases: Authentication, logging, parsing, error handling, CORS. Pitfalls: Order dependency, forgetting next() calls, error middleware placement. Interview tip: Show different middleware types and explain execution flow.</p><p><strong>Q34 — How do you handle errors in Express.js?</strong> Concept / Behavior: Error-handling middleware has 4 parameters (err, req, res, next). Must be defined after other middleware. Use next(err) to trigger error handling. Use-cases: Centralized error handling, logging, user-friendly error responses. Pitfalls: Not properly propagating errors, exposing sensitive information. Interview tip: Show custom error handling middleware and async error handling.</p><p><strong>Q35 — What are Express.js routers?</strong> Concept / Behavior: Mini-applications that handle routing for specific paths. Create with express.Router(), mount with app.use(). Use-cases: Modular routing, API versioning, feature-based organization. Pitfalls: Nested routing complexity, middleware inheritance issues. Interview tip: Demonstrate modular route organization with separate router files.</p><p><strong>Q36 — How do you serve static files in Express.js?</strong> Concept / Behavior: Use express.static() middleware to serve files from a directory. Can set virtual paths and multiple static directories. Use-cases: CSS/JS files, images, downloads, public assets. Pitfalls: Security issues, path traversal attacks, caching considerations. Interview tip: Show basic setup and mention security best practices.</p><p><strong>Q37 — What are template engines and how do you use them with Express?</strong> Concept / Behavior: Template engines render dynamic HTML using templates and data. Popular ones: EJS, Pug, Handlebars. Set with app.set(‘view engine’). Use-cases: Server-side rendering, dynamic web pages, email templates. Pitfalls: Performance with complex templates, XSS vulnerabilities, template injection. Interview tip: Show basic template rendering with data passing.</p><p><strong>Q38 — How do you handle sessions in Express.js?</strong> Concept / Behavior: Use express-session middleware to manage user sessions. Sessions stored server-side, session ID sent via cookie. Use-cases: User authentication, shopping carts, temporary data storage. Pitfalls: Memory leaks, session fixation attacks, scalability with multiple servers. Interview tip: Explain session vs cookies and show session configuration.</p><p><strong>Q39 — How do you implement authentication in Express.js?</strong> Concept / Behavior: Various strategies: session-based, JWT tokens, OAuth. Use passport.js for comprehensive auth solutions. Use-cases: User login/logout, protected routes, role-based access control. Pitfalls: Security vulnerabilities, token management, session handling. Interview tip: Show basic JWT implementation and protected route middleware.</p><p><strong>Q40 — How do you validate requests in Express.js?</strong> Concept / Behavior: Use validation libraries like joi, express-validator, or yup to validate request data. Implement as middleware. Use-cases: API input validation, form data validation, security. Pitfalls: Bypassing validation, complex validation logic, error handling. Interview tip: Demonstrate request validation middleware with error responses.</p><p><strong>Database Integration (Q41–50)</strong></p><p><strong>Q41 — How do you connect to MongoDB using Node.js?</strong> Concept / Behavior: Use MongoDB native driver or Mongoose ODM. Connection involves connection string, connection pooling, and error handling. Use-cases: Document storage, flexible schemas, rapid prototyping, content management. Pitfalls: Connection pool exhaustion, unhandled promise rejections, data validation issues. Interview tip: Show both native driver and Mongoose connection examples.</p><p><strong>Q42 — What is Mongoose and how does it differ from native MongoDB driver?</strong> Concept / Behavior: Mongoose is ODM providing schema definition, validation, middleware, and query building. Native driver is lower-level with more control. Use-cases: Mongoose for structured data with validation; native driver for performance-critical applications. Pitfalls: Mongoose overhead, learning curve, schema rigidity vs MongoDB flexibility. Interview tip: Compare schema definition and query syntax between both.</p><p><strong>Q43 — How do you connect to MySQL/PostgreSQL in Node.js?</strong> Concept / Behavior: Use database-specific drivers (mysql2, pg) or ORMs (Sequelize, TypeORM). Handle connection pooling and prepared statements. Use-cases: Structured data, ACID compliance, complex relationships, enterprise applications. Pitfalls: SQL injection, connection leaks, migration management. Interview tip: Show basic connection setup and parameterized queries.</p><p><strong>Q44 — What are ORMs and when should you use them?</strong> Concept / Behavior: Object-Relational Mapping libraries (Sequelize, TypeORM, Prisma) map database tables to JavaScript objects. Use-cases: Rapid development, type safety, migration management, complex relationships. Pitfalls: Performance overhead, query optimization difficulty, vendor lock-in. Interview tip: Compare raw queries vs ORM approach, mention pros and cons.</p><p><strong>Q45 — How do you handle database migrations?</strong> Concept / Behavior: Versioned scripts to modify database schema over time. Use migration tools provided by ORMs or custom scripts. Use-cases: Schema evolution, deployment automation, team collaboration. Pitfalls: Data loss during migrations, rollback complexity, production downtime. Interview tip: Explain migration best practices and rollback strategies.</p><p><strong>Q46 — How do you implement database transactions?</strong> Concept / Behavior: Group multiple database operations into atomic units. All operations succeed or all fail. Use transaction APIs provided by drivers/ORMs. Use-cases: Financial operations, data consistency, complex multi-table updates. Pitfalls: Deadlocks, long-running transactions, nested transaction complexity. Interview tip: Show transaction example and explain ACID properties.</p><p><strong>Q47 — How do you optimize database queries in Node.js?</strong> Concept / Behavior: Use indexes, limit result sets, avoid N+1 queries, connection pooling, query caching, monitoring slow queries. Use-cases: Performance optimization, reducing server load, improving user experience. Pitfalls: Over-indexing, premature optimization, ignoring query execution plans. Interview tip: Mention specific optimization techniques and monitoring tools.</p><p><strong>Q48 — How do you handle database connection pooling?</strong> Concept / Behavior: Reuse database connections to reduce overhead. Configure pool size, timeouts, and connection lifecycle management. Use-cases: High-concurrency applications, resource optimization, connection management. Pitfalls: Pool exhaustion, connection leaks, incorrect pool sizing. Interview tip: Explain pooling benefits and show configuration examples.</p><p><strong>Q49 — How do you prevent SQL injection in Node.js?</strong> Concept / Behavior: Use parameterized queries/prepared statements, input validation, escape user input, principle of least privilege. Use-cases: Security best practices, protecting against malicious input. Pitfalls: String concatenation for queries, trusting user input, inadequate validation. Interview tip: Show vulnerable vs secure query examples.</p><p><strong>Q50 — How do you implement caching with databases?</strong> Concept / Behavior: Use in-memory caches (Redis, Memcached), application-level caching, query result caching, database query caches. Use-cases: Performance improvement, reducing database load, faster response times. Pitfalls: Cache invalidation complexity, stale data, memory usage. Interview tip: Explain caching strategies and show Redis integration example.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2d966bc2643" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[120 JavaScript Interview Questions Every Intern and SDE-1 Must Know]]></title>
            <link>https://medium.com/@aaadil2004/120-javascript-interview-questions-every-intern-and-sde-1-must-know-48d6f8599cd8?source=rss-e80e123c6215------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d6f8599cd8</guid>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Aadil Siddiqui ]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 17:03:48 GMT</pubDate>
            <atom:updated>2025-08-27T17:03:48.996Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript Interview Questions</h3><h3>Data Types &amp; Fundamentals (Q1–20)</h3><ol><li><strong>What are the primitive data types in JavaScript?</strong></li><li><strong>Difference between null and undefined</strong></li><li><strong>Difference between var, let, and const</strong></li><li><strong>Explain type coercion in JavaScript</strong></li><li><strong>What is the difference between == and ===?</strong></li><li><strong>What are closures in JavaScript?</strong></li><li><strong>What is hoisting in JavaScript?</strong></li><li><strong>Difference between function declaration and function expression</strong></li><li><strong>What is the difference between undefined and not defined?</strong></li><li><strong>Difference between shallow copy and deep copy in JS</strong></li><li><strong>What is the difference between primitive and reference types?</strong></li><li><strong>What are JavaScript wrapper objects?</strong></li><li><strong>What is the difference between shallow copy and deep copy?</strong></li><li><strong>What is immutability in JavaScript?</strong></li><li><strong>Explain pass-by-value vs pass-by-reference in JavaScript</strong></li><li><strong>What are template literals?</strong></li><li><strong>What is the difference between parseInt, parseFloat, and Number()?</strong></li><li><strong>What is the difference between isNaN() and Number.isNaN()?</strong></li><li><strong>What is the difference between Object.freeze() and Object.seal()?</strong></li><li><strong>What are symbols in JavaScript?</strong></li></ol><h3>Functions &amp; Scope (Q21–30)</h3><ol><li><strong>What are first-class functions in JavaScript?</strong></li><li><strong>What is a higher-order function?</strong></li><li><strong>What is a callback function?</strong></li><li><strong>What are arrow functions and their differences from regular functions?</strong></li><li><strong>What is the difference between function declaration and function expression?</strong></li><li><strong>What is an Immediately Invoked Function Expression (IIFE)?</strong></li><li><strong>What is function hoisting in JavaScript?</strong></li><li><strong>What is the difference between arguments object and rest parameters?</strong></li><li><strong>What are default parameters in JavaScript?</strong></li><li><strong>What is the difference between pure and impure functions?</strong></li></ol><h3>Closures, Scope &amp; this (Q31–40)</h3><ol><li><strong>What is the difference between function scope and block scope?</strong></li><li><strong>What is lexical scope?</strong></li><li><strong>What is a closure in JavaScript?</strong></li><li><strong>What are real-world uses of closures?</strong></li><li><strong>What is the scope chain in JavaScript?</strong></li><li><strong>What are global variables and why should you avoid them?</strong></li><li><strong>What is the difference between this in regular functions and arrow functions?</strong></li><li><strong>How does this behave in the global scope?</strong></li><li><strong>How does this work in object methods?</strong></li><li><strong>How do you change the value of this manually? (call, apply, bind)</strong></li></ol><h3>Objects, Prototypes &amp; OOP (Q41–50)</h3><ol><li><strong>What are objects in JavaScript?</strong></li><li><strong>What are object methods?</strong></li><li><strong>Difference between dot notation and bracket notation?</strong></li><li><strong>What are computed property names?</strong></li><li><strong>What is object destructuring?</strong></li><li><strong>What are object prototypes?</strong></li><li><strong>What is prototypal inheritance?</strong></li><li><strong>Difference between proto and prototype?</strong></li><li><strong>What is the difference between class and prototype in JavaScript?</strong></li><li><strong>What are getters and setters in objects?</strong></li></ol><h3>Functions (Advanced) (Q51–60)</h3><ol><li><strong>What are higher-order functions?</strong></li><li><strong>What are callback functions?</strong></li><li><strong>What is function composition?</strong></li><li><strong>Difference between synchronous and asynchronous functions?</strong></li><li><strong>What are closures in JavaScript?</strong></li><li><strong>Why are closures useful?</strong></li><li><strong>What is currying?</strong></li><li><strong>What is partial application?</strong></li><li><strong>Difference between call, apply, and bind?</strong></li><li><strong>What is the difference between function declaration and function expression?</strong></li></ol><h3>Asynchronous JavaScript &amp; Event Loop (Q61–70)</h3><ol><li><strong>What are Promises in JavaScript?</strong></li><li><strong>What is the difference between callbacks and Promises?</strong></li><li><strong>What is async/await?</strong></li><li><strong>What is the Event Loop?</strong></li><li><strong>What are microtasks and macrotasks?</strong></li><li><strong>Difference between setTimeout and setImmediate?</strong></li><li><strong>Difference between process.nextTick() and Promises in Node.js?</strong></li><li><strong>What is concurrency vs parallelism in JavaScript?</strong></li><li><strong>What are Web Workers?</strong></li><li><strong>What is the difference between synchronous and asynchronous iteration?</strong></li></ol><h3>JavaScript Coding Problems — Questions Only</h3><h3>BASICS (10 Questions)</h3><ol><li>Reverse a string</li><li>Check if a string is a palindrome</li><li>Find factorial of a number</li><li>Find Fibonacci sequence up to n</li><li>Find the largest number in an array</li><li>Find the smallest number in an array</li><li>Sum of all elements in an array</li><li>Remove duplicates from an array</li><li>Flatten a nested array</li><li>Find the frequency of elements in an array</li></ol><h3>MEDIUM (Logic Building) (10 Questions)</h3><ol><li>Implement a function to check anagrams</li><li>Write a function to check if two objects are equal</li><li>Implement debounce function</li><li>Implement throttle function</li><li>Write your own map function</li><li>Write your own filter function</li><li>Write your own reduce function</li><li>Merge two sorted arrays</li><li>Rotate an array by k steps</li><li>Find missing number in an array of 1 to n</li></ol><h3>STRINGS &amp; ARRAYS (10 Questions)</h3><ol><li>Capitalize first letter of each word in a string</li><li>Count vowels in a string</li><li>Reverse words in a sentence</li><li>Check if a string has all unique characters</li><li>Find longest word in a sentence</li><li>Find longest substring without repeating characters</li><li>Find longest palindrome substring</li><li>Implement String.prototype.repeat</li><li>Group anagrams together</li><li>Implement word counter using Map</li></ol><h3>OBJECTS &amp; FUNCTIONS (10 Questions)</h3><ol><li>Convert array of objects to object with keys</li><li>Deep clone an object</li><li>Implement curry function</li><li>Implement compose &amp; pipe functions</li><li>Memoize a function</li><li>Implement once() function (executes only once)</li><li>Write a function for sum(2)(3)(4)… pattern</li><li>Implement custom event emitter</li><li>Write a function to flatten an object</li><li>Convert nested object to query string</li></ol><h3>ASYNC &amp; ADVANCED (10 Questions)</h3><ol><li>Implement your own Promise</li><li>Implement Promise.all</li><li>Implement async/await using generators</li><li>Implement a retry mechanism for API calls</li><li>Write a function to limit API calls per second</li><li>Implement a simple cache mechanism</li><li>Write polyfill for setInterval using setTimeout</li><li>Implement sleep(ms) function using Promise</li><li>Implement a custom bind() function</li><li>Implement LRU Cache in JavaScript</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d6f8599cd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>