TGViewer
Web Development Web Development @webdevcoursefree · 79.7K subscribers
Post #3279 6.51K
✅ Web Development Mock Interview Questions: Part-2 🧑‍💻🌍

1️⃣ Q: What is the difference between id and class in HTML?
A:
- id: Unique identifier for a single element.
- class: Can be used on multiple elements for styling or scripting.

2️⃣ Q: What are media queries in CSS?
A: Media queries allow applying different styles based on device properties like screen width, height, orientation, etc. Used for responsive design.

3️⃣ Q: What is the difference between cookies, localStorage, and sessionStorage?
A:
- Cookies: Sent with every request, limited size (~4KB).
- localStorage: Stores data with no expiration.
- sessionStorage: Clears when tab is closed.

4️⃣ Q: What is the difference between inline, block, and inline-block elements?
A:
- Inline: Flows with text, can’t set width/height.
- Block: Takes full width, starts on new line.
- Inline-block: Like inline but respects width/height.

5️⃣ Q: How does event bubbling work in JavaScript?
A: Event bubbling means events propagate from the target element up to its parents, triggering any matching event listeners.

6️⃣ Q: What is a RESTful API?
A: A RESTful API follows REST principles, using standard HTTP methods and stateless communication to interact with resources (like JSON data).

7️⃣ Q: What is the difference between synchronous and asynchronous JavaScript?
A:
- Synchronous: Code runs one line at a time, blocking the thread.
- Asynchronous: Allows non-blocking operations using callbacks, promises, or async/await.

👍 Tap ❤️ for more!
  • ❤ 22
More from @webdevcoursefree
  1. Oct 17, 2026The Finance cell spans two rows. 10. Tables vs Layout Tables should be used for tabular da…
  2. Oct 17, 2026🌐 Web Development Roadmap — Part 19 HTML Tables Tables are used to display information in…
  3. Oct 17, 2026𝗜𝗕𝗠 𝗙𝗥𝗘𝗘 𝗧𝗘𝗖𝗛 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝟮𝟬𝟮𝟲! 🎓 Explore IBM Cognitive Class and build…
  4. Oct 16, 2026𝗗𝗮𝘁𝗮 𝘀𝗰𝗶𝗲𝗻𝗰𝗲 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗪𝗶𝘁𝗵 𝗔𝗜😍 Future Ready Data Scien…
  5. Oct 16, 2026🌐 Web Development Roadmap — Part 18 HTML Lists Lists are used whenever information needs…
  6. Oct 14, 2026🌐 Web Development Roadmap — Part 17 HTML Images — <img> Tag Images make webpages more vis…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →