Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

on save format vs code

On Save Format vs Code As a developer, one of the most important decisions to make is whether to save a file in plain text format or code format. This decision largely depends on what kind of work you are doing and what…

javascript2 min read
2023

check truthy or falsy javascript

Check truthy or falsy JavaScript Truthy and falsy are terms used to describe the Boolean value of an expression. In JavaScript, every value can be evaluated as either truthy or falsy. Truthy Values: Any non-empty string…

javascript1 min read
2023

get country name from browser javascript

Get Country Name from Browser JavaScript If you want to get the country name of the user who is visiting your website, you can use JavaScript to do so. There are a few ways to do this, and I'll explain them below…

javascript3 min read
2023

get parent class javascript

Get Parent Class Javascript Getting the parent class in JavaScript can be a bit tricky, especially if you are not familiar with the object-based nature of the language. However, there are a few ways to get the parent…

javascript3 min read
2023

how to put image url in loop react js

How to Put Image URL in Loop React JS? If you are working on a React JS project and you need to display multiple images using a loop, you may wonder how to put the image URL in the loop. Don't worry, it's actually…

javascript2 min read
2023

playwright get element of specific div

How to Get the Element of a Specific Div in HTML using Javascript If you want to get the element of a specific div in HTML using Javascript, you can use the document.getElementById() method. This method returns the…

javascript1 min read
2023

dropzone add download button addedfile

Dropzone add download button addedfile Dropzone is a JavaScript library that provides drag and drop file uploads with image previews. If you want to add a download button to the added file in Dropzone, you can use the…

javascript2 min read
2023

loop array

Looping Through an Array in JavaScript If you have a collection of values that you want to iterate over, you can use an array in JavaScript. An array is a special variable that can hold multiple values at once. You can…

javascript2 min read
2023

how to get a user input in js

How to Get a User Input in JavaScript As a blogger, I receive many questions about JavaScript programming. One of the most common queries is how to get user input in JavaScript. As someone who has spent countless hours…

javascript2 min read
2023

.map with index javascript

Understanding .map with Index in JavaScript As a web developer, you must have come across the need to iterate over an array and perform some operations on each item. One way of doing this is by using a for loop…

javascript2 min read
2023

input clear

Input Clear Have you ever had an experience where you typed something in an input field, but then wanted to erase it all and start fresh? Well, the "Input Clear" function allows you to easily clear the text in an input…

javascript1 min read
2023

concat vs spread

Concat vs Spread When working with arrays in JavaScript, there are two common methods that come up: concat() and spread operator (...). Concat() The concat() method is used to merge two or more arrays, and returns a new…

javascript1 min read
2023

How to create new Exception in C#

How to create new Exception in C# In C#, exceptions are used for handling runtime errors. While C# provides many built-in exceptions, there may be situations where you need to create your own custom exception. Here's…

javascript1 min read
2023

js shufflin

What is js shuffling? JavaScript shuffling is a process of randomly arranging the elements in an array or collection. It is often used in games and some web applications where randomization is required. JavaScript…

javascript2 min read
2023

js detect mouse support

JavaScript - Detect Mouse Support As a front-end developer, it is important to know whether the user's device supports mouse or not. You can use JavaScript to detect mouse support on a device. Method 1: Checking for…

javascript1 min read
2023

inline style react with true or false

Inline Style React with True or False Inline styling in React is a way to add styles directly to an element using the "style" attribute. This can be done in two ways: True: You can use inline styling to add styles to a…

javascript1 min read
2023

call javascript function from flask

Calling Javascript Function from Flask If you are working with Flask web framework and want to call a Javascript function, there are a few ways to do it. Here are some of the options: Option 1: Inline Script One way to…

javascript2 min read
2023

python convert json to csv

Python: Convert JSON to CSV JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy to read and write for humans and machines. CSV (Comma Separated Values) is a file format that stores…

javascript2 min read
2023

Node 12

Node 12 Node 12 is a version of Node.js, an open source server environment that allows for the execution of JavaScript code outside of a web browser. Node.js utilizes an event-driven, non-blocking I/O model which makes…

javascript1 min read
ESC