Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

props to react router link

Props to React Router Link If you are working on a React project and need to navigate between different pages, then React Router is the go-to option. However, sometimes you need to pass data or props to the component…

javascript2 min read
2023

select onchange pass elemnt

Select Onchange Pass Element When working with forms in HTML, there are various events that can be triggered when a user interacts with the page. One of these events is the onchange event, which is triggered when the…

javascript2 min read
2023

Disallowed Host at Django

Disallowed Host at Django If you have been developing a Django app and you encounter a "Disallowed Host" error, don't worry, it's a common issue. This error occurs when a request comes from a host that is not allowed in…

javascript1 min read
2023

Jest DOM Manipulation

Jest DOM Manipulation If you're a developer, you might have come across the term "DOM Manipulation". In simple words, it is the process of changing the HTML document structure using JavaScript. Jest is a popular testing…

javascript2 min read
2023

proptypes for a react component

Proptypes for a React Component If you are working with React, then you must have come across the term "Proptypes". React Proptypes are used to validate the props passed to a component. It is a typechecking feature that…

javascript2 min read
2023

when do we use scroll listener in javascript

When Do We Use Scroll Listener In JavaScript? Scroll Listener is a JavaScript event that is used when we want to perform some actions based on the scroll position of the user. We use it when we want to know how far the…

javascript2 min read
2023

untrack package-lock.json

Untrack package-lock.json If you are a developer who works on a project using Node.js and npm, you might have come across the package-lock.json file. This file is automatically generated when you run the npm install…

javascript2 min read
2023

extract mongoose erd from mongoose models

hljs.highlightAll(); Extracting Mongoose ERD from Mongoose Models If you are working on a Node.js project with a MongoDB database using Mongoose, you may find it helpful to generate an Entity Relationship Diagram (ERD)…

javascript1 min read
2023

JavaScript Comparison Operators

JavaScript Comparison Operators JavaScript comparison operators are used to compare values and return a boolean value (true or false) based on the comparison result. There are various types of comparison operators in…

javascript2 min read
2023

javascript check if object

Javascript Check If Object As a web developer, I have come across a situation where I needed to check if a variable is an object or not in Javascript. There are many ways to do this, and I will explain some of them…

javascript2 min read
2023

discord js clear message from id

How to clear a message from a Discord channel using its ID in Discord.js? If you are a Discord bot developer using Discord.js, you might want to clear a message from a channel programmatically. In this case, you can use…

javascript2 min read
2023

js regex match start and end of string

JS Regex: Match Start and End of String Regular expressions, or regex, are a powerful and flexible tool for searching, matching, and manipulating text. They can be used in many programming languages, including…

javascript2 min read
2023

how to put html inside jquery text

How to put HTML inside jQuery text? Introduction If you are working with jQuery, you might come across a situation where you need to insert HTML code inside the text of an element. However, doing so is not as…

javascript2 min read
2023

editorGutter.modifiedBackground striped color

Answering "editorGutter.modifiedBackground striped color" in HTML format As a web developer, I have worked with a variety of HTML editors and programming environments. One of the most important aspects of any editor is…

javascript2 min read
2023

window reload in only 767 screen

Window Reload in Only 767 Screen If you want to reload the window only when the screen size is 767px or below, you can use the following code: This code checks the width of the window and if it is less than or equal to…

javascript1 min read
2023

django ajax json data become string

Django Ajax JSON Data Become String If you are working with Django and Ajax, you might come across a situation where you need to pass JSON data to the server. However, sometimes the JSON data passed through Ajax might…

javascript2 min read
ESC