Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

JavaScript querySelector - By ID

JavaScript querySelector - By ID If you are looking to select an element in your HTML document by its ID using JavaScript, you can use the querySelector method. This method is used to select one element based on a CSS…

javascript1 min read
2023

nodemon mpn run start

What is Nodemon? Nodemon is a tool used by developers to automatically restart the server after making changes in the code. It saves time for developers to manually restart the server every time they make changes in the…

javascript1 min read
2023

nextjs check path in page

Next.js Check Path in Page If you want to check the path in a Next.js page, you can use the useRouter hook provided by the next/router package. This hook provides access to the current URL and allows you to check the…

javascript2 min read
2023

js window location relative path

JS Window Location Relative Path As a web developer, it's important to understand how to work with paths in JavaScript. Sometimes, you may want to get the relative path of the current page, or navigate to a new page…

javascript1 min read
2023

if javascript

If Javascript If you are a web developer, then you must have heard about the term "JavaScript". It is one of the most popular programming languages used in front-end web development. What is JavaScript? JavaScript is a…

javascript2 min read
2023

jquery enable submit button

How to Enable Submit Button using jQuery Have you ever encountered a situation where you have a form with a disabled submit button and you want to enable it dynamically based on some condition? Well, you can easily…

javascript1 min read
2023

js how to sort array by string length

Sorting an Array by String Length in JavaScript Sorting an array by string length is a common task in JavaScript development. The good news is that it can be accomplished with only a few lines of code. Method 1: Using…

javascript2 min read
2023

Javascript Regex for non-negative numbers

Javascript Regex for non-negative numbers If you are working with user input in your Javascript code and you want to validate that the input is a non-negative number, you can use regular expressions or regex to do so. A…

javascript2 min read
2023

animejs reduce the speed

How to Reduce the Speed of an Animation with Anime.js? If you are working with animations and looking to decrease the speed of your animation using Anime.js library, then you have landed on the right page. Here, we will…

javascript2 min read
2023

convert moment to date in nodejs

Converting moment to date in Node.js If you are working with dates and times in Node.js, chances are you have come across the popular library called Moment.js. Moment.js is a powerful JavaScript library that makes…

javascript2 min read
2023

react js marked import and use

React.js Marked Import and Use If you are a web developer, you might have heard about React.js. React.js is an open-source JavaScript library used for building user interfaces or UI components. One of the features of…

javascript2 min read
2023

sum of array of objects javascript

Sum of Array of Objects in JavaScript As a JavaScript developer, I have come across a situation where I needed to sum the values of an array of objects. It can be challenging to perform arithmetic operations on arrays…

javascript2 min read
2023

nodejs increase heap size

How to Increase Heap Size in Node.js? If you are working with large amounts of data or running memory-intensive applications, you may encounter "heap out of memory" errors in Node.js. To resolve this issue, you can…

javascript1 min read
2023

react-scripts: command not found

React-scripts: Command Not Found If you are getting the error "react-scripts: command not found" while trying to start your React project, it usually means that the system cannot find the react-scripts package. This…

javascript1 min read
2023

generate and download xml from javascript

How to Generate and Download XML from JavaScript If you're working with JavaScript, you may need to generate and download XML files. Here's how: Method 1: Using Blob and URL.createObjectURL() The first method is to use…

javascript2 min read
2023

javascript regex not in a set of characters

How to use JavaScript regex to exclude a set of characters? JavaScript regex is a powerful tool to match patterns in a string. Sometimes we may want to match everything except a certain set of characters. In this case…

javascript2 min read
2023

react native app crashes without error

React Native App Crashes without Error If your React Native app crashes without any error, it can be frustrating and difficult to debug. But don't worry, there are several steps you can take to identify and fix the…

javascript2 min read
2023

phaser wrap group

Understanding Phaser Wrap Group If you are a game developer, you might have come across Phaser Wrap Group, which is a helpful feature of the Phaser game engine. Phaser Wrap Group is used to create a group of sprites or…

javascript2 min read
2023

react js get default theme of body

How to Get Default Theme of Body in React JS Introduction React JS is a popular library for building user interfaces. When building a React application, it's important to know how to access the default theme of the…

javascript2 min read
ESC