Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

Literal string with a variable inserted

Literal string with a variable inserted When working with strings in programming, it is common to have a need to insert variables into a string. One way to do this is by using a literal string with a variable inserted…

javascript1 min read
2023

jquery edit href

How to Edit Href Using jQuery Introduction As a web developer, I often come across situations where I need to dynamically update the href of a link based on certain conditions. jQuery provides a simple and elegant way…

javascript1 min read
2023

select the items from selectors in .map reactjs

Selecting Items from Selectors in .map ReactJS When working with ReactJS, it's common to use the .map function to iterate over an array and render components dynamically. In doing so, you may need to select certain…

javascript1 min read
2023

image view component react js

Image View Component in ReactJS If you are looking for a way to display images in your ReactJS application, you may want to consider using an image view component. With an image view component, you can easily display…

javascript3 min read
2023

multipart/form-data ajax jquery

Multipart/Form-Data Ajax JQuery Multipart/Form-Data is a way to send binary data or files along with form data in HTTP requests. Ajax is a technique used to send and receive data from a server without reloading the…

javascript2 min read
2023

getx remove all previous routes

How to Remove All Previous Routes with GetX If you are using GetX for managing your Flutter application's state and navigation, you may want to remove all previous routes when navigating to a new screen. This can be…

javascript1 min read
2023

add and remove active class

Add and Remove Active Class Adding and removing an active class in HTML is a common practice when it comes to styling elements based on user interaction. An active class is used to highlight the currently selected…

javascript2 min read
2023

express get request origin

What is an Express GET Request Origin? An Express GET Request Origin is a request sent to a server to retrieve data from it. The server responds with the requested data, which can then be used by the client. How to make…

javascript1 min read
2023

telegrafjs

What is Telegrafjs? Telegrafjs is a modern bot framework for Telegram Bot API which is written entirely in JavaScript. This framework makes it easy to create bots that can handle complex functionalities like inline…

javascript1 min read
2023

call the httpclient.get method called

hljs.highlightAll(); Calling the HttpClient.get Method The HttpClient is an Angular service that is used to make HTTP requests. It provides methods for making GET, POST, PUT, DELETE, and PATCH requests. In this section…

javascript2 min read
2023

cors in express

CORS in Express If you're building a web application with client-server architecture, you may need to make requests from your client-side code to your server-side code. However, when you try to make cross-origin…

javascript2 min read
2023

photoswiper js

What is Photoswiper JS? Photoswiper JS is a JavaScript library used to create mobile-friendly image galleries. It offers a smooth user experience by allowing users to swipe through images on mobile devices while also…

javascript2 min read
2023

js tolocaletimestring update time every second

How to update time every second using JavaScript's toLocaleTimeString function Have you ever wanted to display the current time on your website or application and have it update every second? Well, you're in luck…

javascript2 min read
2023

retrieve domain from email address node js

Retrieving Domain from Email Address in Node.js Have you ever needed to extract the domain name from an email address in your Node.js code? Perhaps you want to verify that the email is coming from a legitimate source…

javascript1 min read
2023

How does find works in javscript?

How does "find" work in JavaScript? If you are working with arrays in JavaScript, you may need to search for a particular element in the array. This is where the "find" method comes in handy. The Syntax The syntax for…

javascript2 min read
2023

How to insert divider in react native

How to insert divider in React Native If you want to add a divider between two components in React Native, you can use the <View> component and style it as a divider. Here are several ways to do it: Method 1: Using…

javascript1 min read
2023

angular 11 features

Angular 11 Features Angular is a popular JavaScript framework that is used for building web and mobile applications. The latest version of Angular, Angular 11, was released in November 2020. Some of the key features of…

javascript1 min read
2023

make service in angular 8

How to Make a Service in Angular 8 Angular 8 is a powerful framework for building web applications. One of its key features is the ability to create reusable services that can be shared across different components. In…

javascript2 min read
2023

modulenamemapper not working

Modulenamemapper Not Working - Troubleshooting Guide If you are facing the issue of 'modulenamemapper not working' while working on a project, there are several ways to troubleshoot it. Modulenamemapper is a tool used…

javascript1 min read
ESC