Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

jest supertest

What is Jest Supertest? Jest Supertest is a testing library that combines two popular tools for testing in JavaScript: Jest, which is a testing framework, and Supertest, which is an HTTP testing library. Jest Supertest…

javascript2 min read
2023

form with formik and yup react js

Form with Formik and Yup in React JS Formik is a popular library in React JS that helps in managing form state and validation. Yup is a library that provides a simple way to validate objects. Together, Formik and Yup…

javascript3 min read
2023

javascript array push

Javascript Array Push The push() method in JavaScript is used to add one or more elements to the end of an array and returns the new length of the array. Syntax: Here, arr is the array on which the push operation is…

javascript1 min read
2023

multiple queries in node js

Multiple Queries in Node.js Node.js is a popular runtime environment that allows developers to write server-side applications using JavaScript. One common task in Node.js applications is executing multiple queries…

javascript2 min read
2023

js object destructuring with defaults

JS Object Destructuring with Defaults JS Object Destructuring is a powerful technique that allows developers to extract properties from objects and bind them to variables. It is a shorthand for extracting multiple…

javascript2 min read
2023

what is Prototype javascript

What is Prototype JavaScript? Prototype JavaScript is a framework that allows developers to create reusable code and extend functionality easily. It provides a set of pre-built functions and objects that can be used to…

javascript1 min read
2023

htaccess to deploy react app to cpanel

Deploying React App to cPanel via .htaccess file If you want to deploy your React app to cPanel, there are different ways to do it. One of the easiest and quickest ways is to use .htaccess file. In this post, I will…

javascript2 min read
2023

whereIn knex

Where in Knex I remember when I was younger, I used to love building things with Knex. It was one of my favorite activities, and I would spend hours constructing elaborate structures and machines. One of the challenges…

javascript2 min read
2023

express handlebars

Express Handlebars Express Handlebars is a popular templating engine for Node.js applications using the Express framework. It is a powerful tool for developers to create dynamic web pages with ease. How to Install…

javascript1 min read
2023

how to debug node js file in webpack

How to Debug Node JS File in Webpack If you're working on a Node.js project using Webpack and you're looking for a way to debug your code, you've come to the right place. Debugging your code is essential when you're…

javascript2 min read
2023

get img src and set as variable

Getting img src and Setting it as a Variable Have you ever needed to get the source of an image and store it in a variable for later use? Maybe you want to display the same image in multiple places on your webpage…

javascript2 min read
2023

Write File to the Operating System with NodeJS

How to Write a File to the Operating System with NodeJS NodeJS is a popular runtime environment that allows developers to use JavaScript on the server-side. One of the common tasks when working with NodeJS is writing…

javascript2 min read
2023

scroll to smooth javascript

Scroll to Smooth JavaScript If you want to make your website look more professional and polished, adding smooth scrolling can be a great way to improve user experience. The default scroll is jerky and choppy, but a…

javascript2 min read
2023

js create json from object

How to Create JSON from an Object in JavaScript JSON or JavaScript Object Notation is a lightweight data format that is easy to read and write. It is widely used in web applications to transmit data between the client…

javascript1 min read
2023

string uppercase

Understanding String Uppercase String uppercase is a method used to convert all characters in a given string to uppercase letters. This can be useful in various scenarios where you need to manipulate strings or compare…

javascript2 min read
2023

Mongoose READ

Mongoose READ As a web developer, I have worked with MongoDB and Mongoose, a popular Object Data Modeling (ODM) library for MongoDB. Mongoose provides easy-to-use methods to perform CRUD operations on MongoDB documents…

javascript1 min read
ESC