Convert 1023 to Binary, Octal, and Hexadecimal.
Answer:
Difference between <section> and <article>
Answer:
section
article
Difference between Flexbox and Grid
Answer:
Flexbox → One Dimension
display:flex;
Grid → Two Dimensions
display:grid;
What is the DOM?
Answer:
DOM (Document Object Model) is a tree representation of HTML.
What is Express.js?
Answer:
Express.js is a fast and lightweight web framework for Node.js used to build web applications and REST APIs.
Smallest number to add to 78965 to make it divisible by 97.
Answer = 66
What is the purpose of <!DOCTYPE html>?
Answer:
It tells the browser that the document uses HTML5.
<!DOCTYPE html>
Difference between visibility:hidden and display:none
Answer:
visibility:hidden;
Element hidden but space remains.
display:none;
Element removed from layout.
What are Data Attributes?
Answer:
<div data-id="101">
Product
</div>Store custom data.
What is Routing?
Answer:
Routing determines how an application responds to client requests
Smallest number leaving remainder 5 when divided by 8 and remainder 7 when divided by 10.
Answer = 77
What is the difference between Block and Inline Elements?
Answer:
Block Elements
<div>Hello</div> <p>Paragraph</p> <h1>Heading</h1>
What is z-index?
Answer:
Controls stacking order.
.card{
position:absolute;
z-index:100;
}Higher value appears on top.
What is SEO-friendly HTML?
Answer:
Benefits:
What are HTTP Methods?
Answer:
GET POST PUT PATCH DELETE
Convert binary 110101101011 to hexadecimal.
Answer = D6B
Difference between div and span?
Answer:
<div>Block Element</div> <span>Inline Element</span>
What is a Stacking Context?
Answer:
A stacking context determines how elements are layered on the z-axis.
What is the Event Loop?
Answer:
The Event Loop handles asynchronous operations by moving callbacks from queues to the call stack when it becomes empty.
Difference between PUT and PATCH?
Answer:
PUT → Replace entire resource.
PATCH → Update specific fields.
Convert binary 111100001111 to hexadecimal
Answer: F0F
What is Viewport?
Answer:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Makes websites responsive on mobile devices.
. Explain CSS Grid Auto-Fill vs Auto-Fit.
Answer:
Auto-fill keeps empty columns.
Auto-fit expands columns.
What is the this Keyword?
Answer:
this refers to the object calling the method.
What is the Difference Between app.use() and app.get()?
Answer:
app.use()
Runs for all HTTP methods.
app.get()
Runs only for GET requests.