Posts

Showing posts from September, 2023

lti mindtree

Q) block element  In HTML, a block-level element is an element that typically starts on a new line and takes up the full width of its parent container, creating a "block" of content. Block-level elements are often used for structuring the layout and content of a web page Q) center a div with parent border and child border  code link: <a href= "https://codesandbox.io/s/keen-sunset-zflgnf">link</a>  Q) event loop The event loop is a fundamental concept in JavaScript and plays a crucial role in how JavaScript manages asynchronous operations and maintains its non-blocking behavior. It is responsible for handling events and executing tasks in a timely and efficient manner. The event loop allows JavaScript to perform tasks such as handling user input, making network requests, and executing callbacks without blocking the main thread of execution. Here's an overview of how the event loop works in JavaScript: 1. **Call Stack**: JavaScript maintains a call ...