Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

nextelementsibling javascript

Understanding nextElementSibling in Javascript If you are wondering what nextElementSibling is in Javascript, you are in the right place. nextElementSibling is a property in Javascript that allows you to access the next…

javascript2 min read
2023

useEffect react

Understanding useEffect in React.js If you're working on a React.js project, you may have come across the useEffect() hook. This hook allows you to perform side effects in functional components, such as fetching data…

javascript2 min read
2023

javascript terminal base64 encoder

JavaScript Terminal Base64 Encoder As a web developer, I have come across several situations where I needed to encode or decode data in Base64 format using JavaScript. However, sometimes it's not possible to use an…

javascript2 min read
2023

next js navigation to other page in a function

Next.js Navigation to Other Page in a Function If you are using Next.js for your web development project, you might want to navigate to another page when a certain function is called. Fortunately, Next.js provides an…

javascript2 min read
2023

converting circular structure to json

Converting Circular Structure to JSON Have you ever encountered an error message in JavaScript that says "Converting circular structure to JSON"? This error occurs when trying to convert an object that contains circular…

javascript2 min read
2023

looping of javascript

Looping of Javascript If you are a beginner in Javascript, you might have heard the term "looping" quite often. Looping is a process of executing a set of instructions repeatedly while a certain condition is true. In…

javascript2 min read
2023

query date range in mongodb

Query Date Range in MongoDB If you want to retrieve documents from MongoDB that fall within a specific date range, you can use the $gte and $lt operators in your query. These operators stand for "greater than or equal…

javascript1 min read
2023

fetch data next.js

How to Fetch Data in Next.js If you're building an application with Next.js, you'll likely need to fetch data from an external API or server. Fortunately, Next.js makes this process relatively easy with its built-in…

javascript2 min read
2023

add multiple event listeners

Add Multiple Event Listeners If you want to add multiple event listeners to an element, you can do so by either using the addEventListener() method multiple times or by using a single function and attaching it to…

javascript1 min read
2023

how to restrict page leave in javascript

How to Restrict Page Leave in JavaScript Have you ever been in a situation where you want to stop the user from leaving your web page accidentally? Well, it's possible with JavaScript. In this article, I will show you…

javascript2 min read
2023

get n random items from array javascript

Get n random items from array in JavaScript If you have an array in JavaScript and want to get n random items from it, there are several ways to do it: Method 1: Using a for loop and Math.random() This method involves…

javascript2 min read
2023

ext4 reader windwos

How to Read an Ext4 File System on Windows? If you have a Linux-based system that uses an Ext4 file system, it might be difficult to access your files from a Windows-based system. This is because Windows does not…

javascript2 min read
2023

React Js Bootstrap Modal Popup

React Js Bootstrap Modal Popup If you are working with React Js and want to create a modal or a popup in your web application, Bootstrap Modal can be a great option. Bootstrap Modal is a plugin that enables you to…

javascript2 min read
2023

get size widget renderbox

Understanding the Get Size Widget Renderbox Method in HTML If you are a web developer or designer, it is essential to have a clear understanding of the Get Size Widget Renderbox method in HTML. This method is used to…

javascript2 min read
2023

delete file with deno

Deleting Files with Deno If you are working with Deno, you may need to delete files at some point in your code. Deleting a file with Deno is a simple process that can be done using the built-in Deno.remove() method…

javascript1 min read
2023

How to add typewriter effect in react

Adding Typewriter Effect in React If you want to add a typewriter effect in React, there are various ways to do it. You can use third-party libraries or create your own custom component. Here are some approaches: Using…

javascript2 min read
2023

loop through object javascript

Loop Through Object in JavaScript Looping through an object in JavaScript is a common task that developers often encounter. It allows us to access and manipulate the properties and values of an object. There are several…

javascript2 min read
2023

js tolocalestring with hours

JS toLocaleString with Hours Have you ever wanted to display a date with hours in a specific format? Well, you can achieve that with the toLocaleString() method in JavaScript. This method returns a string that…

javascript2 min read
2023

object set js

Understanding Object Sets in JavaScript If you are a JavaScript developer, you must have worked with objects in JavaScript. An object is a collection of key-value pairs, where each key represents a property and the…

javascript2 min read
ESC