๐ฅ๏ธ Frontend (HTML, CSS, JavaScript)
1๏ธโฃ Q: Whatโs the difference between relative, absolute, fixed & sticky positioning in CSS?
๐ Relative: Moves relative to its normal position.
๐ Absolute: Positioned relative to nearest positioned ancestor.
๐ Fixed: Stays fixed relative to the viewport.
๐ Sticky: Switches between relative and fixed when scrolling.
2๏ธโฃ Q: Explain the CSS Box Model.
๐ It consists of: Content โ Padding โ Border โ Margin
3๏ธโฃ Q: How do you improve website performance?
๐ Minify files, use lazy-loading, enable caching, code splitting, use CDN.
4๏ธโฃ Q: Whatโs the difference between == and === in JS?
๐ == compares รvalue onlyร (type coercion), === compares รvalue + typeร.
5๏ธโฃ Q: How does event delegation work?
๐ Attach a single event listener to a parent element to handle events from its children.
6๏ธโฃ Q: What are Promises & how is async/await different?
๐ Promises handle async operations. async/await is syntactic sugar for cleaner code.
7๏ธโฃ Q: How does the browser render a page (Critical Rendering Path)?
๐ HTML โ DOM + CSSOM โ Render Tree โ Layout โ Paint
๐ ๏ธ Backend (Node.js, Express, APIs)
8๏ธโฃ Q: What is middleware in Express?
๐ Functions that execute during request โ response cycle. Used for auth, logging, etc.
9๏ธโฃ Q: REST vs GraphQL?
๐ REST: Multiple endpoints. GraphQL: Single endpoint, fetch what you need.
๐ Q: How do you handle authentication in Node.js?
๐ JWT tokens, sessions, OAuth strategies (like Google login).
1๏ธโฃ1๏ธโฃ Q: Common HTTP status codes?
๐ 200 = OK, 201 = Created, 400 = Bad Request, 401 = Unauthorized, 404 = Not Found, 500 = Server Error
1๏ธโฃ2๏ธโฃ Q: What is CORS and how to enable it?
๐ Cross-Origin Resource Sharing โ restricts requests from different domains.
Enable in Express with cors package:
const cors = require('cors');
app.use(cors());๐๏ธ Database & Full Stack
1๏ธโฃ3๏ธโฃ Q: SQL vs NoSQL โ When to choose what?
๐ SQL: Structured, relational data (MySQL, Postgres)
๐ NoSQL: Flexible, scalable, unstructured (MongoDB)
1๏ธโฃ4๏ธโฃ Q: What is Mongoose in MongoDB apps?
๐ ODM (Object Data Modeling) library for MongoDB. Defines schemas, handles validation & queries.
๐ General / Deployment
1๏ธโฃ5๏ธโฃ Q: How to deploy a full-stack app?
๐ Frontend: Vercel / Netlify
๐ Backend: Render / Heroku / Railway
๐ Add environment variables & connect frontend to backend via API URL.
๐ Tap โค๏ธ if this was helpful!