Trending questions in Web Development

0 votes
0 answers

What’s the difference between Observables and Promises?

With the help of an example, can ...READ MORE

Mar 3, 2025 in Angular by Nidhi
• 16,260 points
427 views
0 votes
1 answer

How to pass parameters with react-router?

Passing Parameters with React Router 1. Define a ...READ MORE

Feb 23, 2025 in Node-js by Kavya
748 views
0 votes
1 answer

What is the difference between Hooks and router in React?

Feature Hooks React Router Definition Functions that manage state and side ...READ MORE

Feb 24, 2025 in Node-js by Kavya
733 views
0 votes
1 answer

How do you handle a large amount of data in React?

Handling Large Amounts of Data in React To ...READ MORE

Feb 24, 2025 in Node-js by Kavya
706 views
0 votes
1 answer

How can you implement forkJoin for multiple API responses aggregation?

In Angular, forkJoin is used to combine ...READ MORE

Feb 24, 2025 in Node-js by Navya
671 views
0 votes
1 answer

Is there a way to ignore touch events on Text in React Native, or can they be managed differently?

Yes! In React Native, you can ignore ...READ MORE

Feb 22, 2025 in Node-js by Kavya
795 views
0 votes
1 answer

How do you choose the root node while constructing a decision tree?

Selecting the root node in a decision ...READ MORE

Feb 25, 2025 in Node-js by Navya
626 views
0 votes
1 answer

How can you configure routing for a multi-page React application using React-Router?

To configure routing for a multi-page React ...READ MORE

Feb 23, 2025 in Node-js by Kavya
718 views
0 votes
1 answer

How would you manage the state between different components of the site?

Method Description Best For Props (Parent to Child) Pass data from ...READ MORE

Feb 24, 2025 in Node-js by Kavya
691 views
0 votes
1 answer

How does the @Component directive define Angular components?

The @Component decorator defines a component by ...READ MORE

Feb 26, 2025 in Angular by Navya
557 views
0 votes
1 answer

How to check Node version in Ubuntu?

To check the installed Node.js version in ...READ MORE

Feb 25, 2025 in Node-js by Navya
586 views
0 votes
1 answer

How would you implement routing in a dynamic Music Store application?

Implementing Routing in a Dynamic Music Store ...READ MORE

Feb 23, 2025 in Node-js by Kavya
677 views
0 votes
1 answer

How to build an Angular project?

To build an Angular project, follow these ...READ MORE

Feb 25, 2025 in Angular by Navya
582 views
0 votes
1 answer

How to convert a Fetch API response to RxJS Observable?

To convert a Fetch API response into ...READ MORE

Feb 26, 2025 in Node-js by Kavya
537 views
0 votes
1 answer

How can we add the style conditionally in Angular?

In Angular, you can add styles conditionally ...READ MORE

Feb 26, 2025 in Angular by Tanya
534 views
0 votes
1 answer

How to set read concern in MongoDB?

In MongoDB, you can set read concern ...READ MORE

Feb 23, 2025 in Node-js by Kavya
667 views
0 votes
1 answer

How to use ngIf with else?

You can use *ngIf with else to ...READ MORE

Feb 26, 2025 in Node-js by Navya
526 views
0 votes
1 answer

How do you implement breadcrumbs in a React-Router app?

Breadcrumbs help users navigate by showing the ...READ MORE

Feb 24, 2025 in Node-js by Kavya
620 views
0 votes
1 answer

How does BehaviorSubject differ from Subject in state management?

Feature Subject BehaviorSubject Initial Value No initial value Requires an initial value Last ...READ MORE

Feb 24, 2025 in Node-js by Navya
584 views
0 votes
1 answer

How do you integrate authentication with React-Router?

To integrate authentication with React Router, follow ...READ MORE

Feb 24, 2025 in Node-js by Kavya
607 views
0 votes
1 answer

How do you design a data model for a social media platform using MongoDB?

Design a MongoDB data model for a ...READ MORE

Feb 23, 2025 in Node-js by Kavya
636 views
0 votes
1 answer

How do I fix a 401 unauthorized status code?

A 401 Unauthorized status code means the ...READ MORE

Feb 26, 2025 in Angular by Kavya
493 views
0 votes
1 answer

Should I use map or switchmap when using angular http module?

When working with the Angular HTTP module, ...READ MORE

Feb 24, 2025 in Angular by Navya
565 views
0 votes
1 answer

Which of the following method is used for cross-domain Ajax calls?

The correct method used for cross-domain Ajax ...READ MORE

Feb 26, 2025 in Angular by Kavya
481 views
0 votes
1 answer

Can we create a custom directive in Angular?

You can create a custom directive in ...READ MORE

Feb 26, 2025 in Angular by Tanya
478 views
0 votes
1 answer

How would you use NavLink to style active navigation links in a React application?

You can use the <NavLink> component to ...READ MORE

Feb 23, 2025 in Node-js by Kavya
613 views
0 votes
1 answer

Is it possible to handle React events using the Chrome extension?

Yes, it's possible to handle React events ...READ MORE

Feb 22, 2025 in Node-js by Kavya
675 views
0 votes
1 answer

How do you implement routing in a React application?

Implementing Routing in a React Application (React ...READ MORE

Feb 23, 2025 in Node-js by Kavya
609 views
0 votes
1 answer

What is the difference between React Synthetic Events and Native JavaScript Events, or how do they compare?

Feature React Synthetic Events (SyntheticEvent) Native JavaScript Events (Event) Definition React’s ...READ MORE

Feb 22, 2025 in Node-js by Kavya
671 views
0 votes
1 answer

How to handle duplicate records in MongoDB?

Handling duplicate records in MongoDB depends on ...READ MORE

Feb 23, 2025 in Node-js by Kavya
631 views
0 votes
1 answer

How would you implement a chat application using MongoDB’s data model patterns?

To implement a chat application using MongoDB’s ...READ MORE

Feb 23, 2025 in Node-js by Kavya
605 views
0 votes
1 answer

What is the best proper way to create the meta data for your page?

Best Way to Set Metadata in a ...READ MORE

Feb 24, 2025 in Java-Script by Kavya
577 views
0 votes
1 answer

How do I use pointer-events to react only to scroll events, or is there a better approach?

Capturing Only Scroll Events in React If you ...READ MORE

Feb 22, 2025 in Node-js by Kavya
647 views
0 votes
1 answer

How do you use Journaling for write concern in MongoDB?

Using Journaling for Write Concern in MongoDB Journaling ...READ MORE

Feb 23, 2025 in Node-js by Kavya
594 views
0 votes
1 answer

How do you model a many-to-many relationship in MongoDB with an example?

In MongoDB, a many-to-many relationship can be ...READ MORE

Feb 23, 2025 in Node-js by Kavya
592 views
0 votes
1 answer

How can I determine whether a JavaScript object is empty?

Use Object.keys(obj).length === 0 to check if ...READ MORE

Feb 23, 2025 in Java-Script by Kavya
589 views
0 votes
1 answer

What is the default response type of HttpClient service?

By default, HttpClient assumes the server response ...READ MORE

Feb 25, 2025 in Node-js by Navya
495 views
0 votes
1 answer

How to create an API in Angular?

Angular itself does not create APIs, but ...READ MORE

Feb 24, 2025 in Angular by Kavya
558 views
0 votes
1 answer

What is the best way to handle e and props in React TypeScript?

In React with TypeScript, handling events and ...READ MORE

Feb 23, 2025 in Node-js by Kavya
600 views
0 votes
1 answer

How would you dynamically generate routes from an API response?

To dynamically generate routes from an API ...READ MORE

Feb 24, 2025 in Node-js by Kavya
551 views
0 votes
1 answer

What's the difference between ngIf, ngFor, and ngSwitch?

Directive Purpose Usage Example *ngIf Conditionally adds/removes elements based on a boolean ...READ MORE

Feb 26, 2025 in Node-js by Navya
440 views
0 votes
1 answer

How can a child component's props be overwritten in React?

You can utilize the React.cloneElement function. This ...READ MORE

Feb 23, 2025 in Node-js by Kavya
593 views
0 votes
1 answer

What is the use of Switch in React Router?

In React Router v5, <Switch> is used ...READ MORE

Feb 23, 2025 in Node-js by Kavya
572 views
0 votes
1 answer

How can you handle route transitions with animations?

You can use Framer Motion with React ...READ MORE

Feb 24, 2025 in Node-js by Kavya
544 views
0 votes
1 answer

How can structural directives manipulate the DOM in Angular?

Structural directives in Angular (*ngIf, *ngFor, *ngSwitch) ...READ MORE

Feb 26, 2025 in Angular by Navya
433 views
0 votes
1 answer

How do you handle concerns for write operations in MongoDB?

Write operations in MongoDB need to be ...READ MORE

Feb 23, 2025 in Node-js by Kavya
568 views
0 votes
1 answer

How do you pass and use URL parameters in a React-Router route?

Passing and Using URL Parameters in React ...READ MORE

Feb 23, 2025 in Node-js by Kavya
563 views
0 votes
1 answer

How can I use React Router v4 to programmatically push to history?

You can utilize the history object's push ...READ MORE

Feb 21, 2025 in Node-js by Kavya
832 views
0 votes
1 answer

Write a query for a compound index to optimize a search operation in MongoDB.

A compound index improves search performance by ...READ MORE

Feb 23, 2025 in Node-js by Kavya
563 views
0 votes
1 answer

How to apply filter and map in a pipeline for specific data processing?

In RxJS, filter is used to remove ...READ MORE

Feb 24, 2025 in Java-Script by Navya
501 views