Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

js validate phone number

How to Validate Phone Numbers with JavaScript Validating phone numbers is an essential part of web development. In this article, we will discuss how to validate phone numbers using JavaScript. Method 1: Using Regular…

javascript2 min read
2023

fill div javascript

Fill div Javascript Have you ever wanted to dynamically fill a div with content using Javascript? If so, you're in luck, because it's actually pretty simple! Method 1: Using innerHTML The first method involves using the…

javascript2 min read
2023

what is from npm

What is from npm? If you are a developer, chances are you have heard of npm. npm stands for Node Package Manager, and it is the default package manager for the Node.js runtime environment. npm is a command-line tool…

javascript2 min read
2023

upload file using ajax

How to Upload File Using AJAX If you want to upload a file without refreshing the page, you can use AJAX. AJAX stands for Asynchronous JavaScript and XML. It allows you to send and receive data from a server without…

javascript2 min read
2023

Secure random token in Node.js with crypto

Secure Random Token in Node.js with Crypto If you are working with Node.js and need to generate a secure random token, you can use the built-in crypto module. This module provides cryptographic functionality that…

javascript2 min read
2023

JavaScript nested destructuring

JavaScript nested destructuring: JavaScript nested destructuring allows you to extract values from nested objects and arrays using a single line of code. This technique is especially useful when working with complex…

javascript1 min read
2023

access selected option in jquery

Accessing Selected Option in jQuery If you are working with forms and want to access the selected option of a drop-down list in jQuery, then you can use the following methods: Method 1: Using .val() The simplest way to…

javascript2 min read
2023

concat() and concatWith()

Understanding Concat() and ConcatWith() Methods in JavaScript If you are a JavaScript programmer, then you might have come across the terms "concat() and concatWith()" methods. Both these methods are used to combine two…

javascript2 min read
2023

are you sure alert js

Are You Sure Alert JS? As a web developer, I have come across situations where I needed to confirm the user's decision before proceeding with an action. This is where the "Are you sure alert" comes into play. It is a…

javascript1 min read
2023

js remove nonalphanumeric

How to Remove Non-Alphanumeric Characters in JavaScript As a web developer, I have often come across situations where I need to remove non-alphanumeric characters from a string in JavaScript. This can be useful when…

javascript2 min read
2023

The Three Ways

The Three Ways When it comes to software development, there are three ways to approach it. These three ways are described in the book "The Phoenix Project" by Gene Kim, Kevin Behr, and George Spafford. They are: 1. The…

javascript2 min read
2023

javascript get magnitude of number

JavaScript Get Magnitude of Number If you are working with numbers in JavaScript, there may be instances where you need to find the magnitude of a number. The magnitude of a number is essentially the number's absolute…

javascript1 min read
2023

javascript change class name

Javascript Change Class Name If you are working on a project that involves dynamically changing the style of HTML elements, then you must know how to change class names using Javascript. There are many ways to do this…

javascript1 min read
2023

canactivate angular

Understanding CanActivate in Angular If you are working with Angular, you might have heard about CanActivate at some point. Angular provides this interface to control whether a user can access a specific route or not…

javascript2 min read
2023

array map destructuring

Array Map Destructuring Array map destructuring is a feature in JavaScript that allows you to destructure an array and map its elements into new variables. It is a shorthand for extracting values from an array and…

javascript2 min read
2023

Jquery search in json

Jquery Search in JSON Searching in JSON data can be a daunting task, especially when the data is huge. Luckily, Jquery provides us with some simple ways to search in JSON data. In this blog post, I will explain how to…

javascript2 min read
2023

axios post query params

Understanding Axios Post Query Params When it comes to making HTTP requests in JavaScript, Axios is a popular choice due to its simplicity and ease of use. One common use case is making POST requests with query…

javascript2 min read
2023

jsdoc run for all files in folder

How to Use JSDoc to Run for All Files in Folder JavaScript is a powerful programming language that is used to create dynamic and interactive web applications. JSDoc is a tool that helps developers document their code…

javascript2 min read
ESC