Trending questions in Web Development

0 votes
1 answer

How can you create chainable route handlers for a route path in the Express JS app?

The.route() method in an Express.js application allows ...READ MORE

Dec 13, 2024 in Web Development by Navya
67 views
0 votes
1 answer

How to guard route by user role ?

1. Create an AuthService to manage user roles: This service ...READ MORE

Dec 12, 2024 in Web Development by Navya
72 views
0 votes
1 answer

How to disable input field in Angular on condition?

Bind to [disabled] Attribute You can bind the ...READ MORE

Dec 4, 2024 in Web Development by Navya
193 views
0 votes
1 answer

How to speed up mongodb query?

To speed up MongoDB queries, consider the ...READ MORE

Dec 6, 2024 in Web Development by Navya
92 views
0 votes
1 answer

How to insert a node in a linked list?

To insert a node at the front ...READ MORE

Dec 6, 2024 in Web Development by Navya
89 views
0 votes
1 answer

How to calculate total number of documents in MongoDB?

You can use countDocuments() method. Definition: The countDocuments() method ...READ MORE

Dec 6, 2024 in Web Development by Navya
86 views
0 votes
1 answer

How can I load jQuery from a CDN, and what are the benefits of using a CDN for jQuery?

All you need to do is include ...READ MORE

Dec 6, 2024 in Web Development by Navya
85 views
0 votes
1 answer

How to get the returned value of a JavaScript function executed on an HTML page?

To get the returned value of a ...READ MORE

Dec 6, 2024 in Web Development by Navya
81 views
0 votes
1 answer

How to select parent element in CSS?

The :has() pseudo-class, a proposed CSS selector, ...READ MORE

Dec 6, 2024 in CSS by Navya
79 views
0 votes
1 answer

How to load videos faster in HTML?

To improve the loading speed of videos ...READ MORE

Dec 6, 2024 in Web Development by Navya
77 views
0 votes
1 answer

How do you view the commit history in Git?

To display commit history with full messages: git ...READ MORE

Dec 6, 2024 in Web Development by Navya
77 views
0 votes
1 answer

What is the difference between margin and padding in CSS?

Feature Margin Padding space location An element's outer space, beyond its ...READ MORE

Dec 6, 2024 in Web Development by navya
76 views
0 votes
1 answer

How do you load external content into a div using jQuery?

To load external content into a <div> ...READ MORE

Dec 6, 2024 in Web Development by Navya
75 views
0 votes
1 answer

How do you handle uncaught exceptions and promise rejections in Express.js?

Handling uncaught exceptions and unhandled promise rejections ...READ MORE

Dec 6, 2024 in Angular by Navya
75 views
0 votes
1 answer

How do you apply CSS styles dynamically using jQuery?

You can use jQuery’s css() method to ...READ MORE

Dec 6, 2024 in Web Development by Navya
73 views
0 votes
1 answer
0 votes
1 answer

How do you create a responsive layout using CSS?

You can use media queries, flexbox, grid ...READ MORE

Dec 6, 2024 in Web Development by Navya
68 views
0 votes
1 answer

How to run a function in a script from the command line in Node.js?

To run a specific function within a ...READ MORE

Dec 13, 2024 in Web Development by Navya
106 views
0 votes
1 answer

How to transfer data between two unrelated components in Angular?

Steps to Transfer Data Between Unrelated Components 1. ...READ MORE

Dec 12, 2024 in Angular by Navya
136 views
0 votes
1 answer

Why must 'React' be in scope when using JSX?

Because JSX is transformed into JavaScript at ...READ MORE

Dec 12, 2024 in Web Development by Navya
117 views
0 votes
1 answer

How to create a donut with rounded edges in one direction and a white border between segments?

You can use CSS and conic-gradient for ...READ MORE

Dec 4, 2024 in Web Development by navya
119 views
0 votes
1 answer

How to pass request query parameters through a Node.js application?

Using Node.js http Module Step 1: Basic Server ...READ MORE

Dec 13, 2024 in Node-js by Navya
81 views
0 votes
1 answer

Why does "window is not defined" error occur in Next.js?

"window is not defined" error in Next.js ...READ MORE

Dec 4, 2024 in Web Development by navya
108 views
0 votes
1 answer

How to implement a search box in Angular?

1. Create an Angular Component ng generate component search 2. App ...READ MORE

Dec 4, 2024 in Web Development by Navya
98 views
0 votes
1 answer

Are pointers available in JavaScript?

No, there are no pointers in JavaScript. JavaScript ...READ MORE

Dec 4, 2024 in Web Development by Navya
96 views
0 votes
1 answer

Why don't React-router URLs work when refreshing or writing manually?

Below is a just and complete account ...READ MORE

Dec 12, 2024 in Web Development by Navya
89 views
0 votes
1 answer

How to handle browser back button in Angular 12?

To handle the browser back button in ...READ MORE

Dec 4, 2024 in Web Development by Navya
88 views
0 votes
1 answer

How do you delete a local branch in Git?

1. Delete a Local Branch (Safe Method) If ...READ MORE

Dec 4, 2024 in Web Development by kavya
90 views
0 votes
1 answer

What is the most efficient way to read large file using Node.JS(LTS)?

Using Streams Steps to read a large file ...READ MORE

Dec 4, 2024 in Web Development by Navya
86 views
0 votes
1 answer

How can you use CSS variables in your styles?

To define a CSS variable, use the ...READ MORE

Dec 4, 2024 in Web Development by Navya
83 views
0 votes
1 answer

How to parse a date in Java?

Using DateTimeFormatter  Example: import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class DateParsing { ...READ MORE

Dec 4, 2024 in Web Development by Navya
81 views
0 votes
1 answer

How can you center an element vertically using CSS?

Using Flexbox .container { display: flex; ...READ MORE

Dec 4, 2024 in Web Development by navya
72 views
0 votes
1 answer

How do you serve static files efficiently using Express.js?

Serving static files effectively using Express.js Use express.static() ...READ MORE

Dec 4, 2024 in Web Development by Navya
62 views
0 votes
1 answer

How to read a JSON file into server memory in Node.js?

To read a JSON file into server ...READ MORE

Dec 13, 2024 in Web Development by Navya
125 views
0 votes
1 answer

How to pass data from a child component to a parent component in Angular 4?

In Angular 4, passing data from a ...READ MORE

Dec 4, 2024 in Angular by Navya
129 views
0 votes
1 answer
0 votes
1 answer

What techniques can I use to enforce per-user rate limits in a multi-instance Spring Boot app?

To enforce per-user rate limits in a ...READ MORE

Nov 28, 2024 in Web Development by nidhi jha
105 views
0 votes
1 answer

How can I implement a hybrid retry strategy combining fixed delays and exponential backoff for HTTP 429 errors?

In order to implement a hybrid retry ...READ MORE

Nov 26, 2024 in Node-js by harsh yadav
157 views
0 votes
1 answer

How do I use Redis to implement rate-limiting across multiple Spring Boot instances with varying quotas?

You can use Redis to implement distributed ...READ MORE

Nov 27, 2024 in Java-Script by anil limbu
124 views
0 votes
1 answer

Is Node.js code visible to the client side?

Minimizing (or minifying) JavaScript files in a ...READ MORE

Nov 27, 2024 in Web Development by Navya
120 views
0 votes
1 answer

What patterns can I use to incorporate server-provided retry-after headers in Spring Retry configurations?

You can use the Custom BackOffPolicy pattern ...READ MORE

Nov 27, 2024 in Node-js by madhav yadav
118 views
0 votes
1 answer

How to run TypeScript files from the command line?

TypeScript needs to be compiled into JavaScript ...READ MORE

Nov 27, 2024 in Angular by Navya
95 views
0 votes
1 answer

How to update data between parent and child components in Angular?

Data between parent and child components can ...READ MORE

Nov 27, 2024 in Web Development by kavya
112 views
0 votes
1 answer

How to include a JavaScript file in another JavaScript file?

Let's assume you have two files: math.js: This ...READ MORE

Nov 27, 2024 in Java-Script by kavya
91 views
0 votes
1 answer

How to set a cookie in Node.js using the Express framework?

You can use the res.cookie() method to ...READ MORE

Nov 27, 2024 in Web Development by Navya
106 views
0 votes
1 answer

How to create an Observable from a string in Angular 2?

In Angular (or any JavaScript application using ...READ MORE

Nov 27, 2024 in Web Development by kavya
105 views
0 votes
1 answer

How do I prevent starvation of low-priority tasks when using a retry queue for handling HTTP 429 errors?

To prevent starvation of low-priority tasks in ...READ MORE

Nov 27, 2024 in Node-js by avilash
100 views
0 votes
1 answer

How can I convert or assign an Observable to a BehaviorSubject so another component can share it?

To convert or assign an Observable to ...READ MORE

Nov 27, 2024 in Web Development by kavya
101 views
0 votes
1 answer

What are the differences between Subject, BehaviorSubject, and ReplaySubject in Angular?

In Angular, Subject, Behaviour Subject, and Replay ...READ MORE

Nov 27, 2024 in Web Development by kavya
97 views