Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

how to get a random item from an array javascript

How to get a random item from an array in Javascript? Getting a random item from an array in Javascript is a common problem that developers encounter. There are different methods to achieve this, but here are some of…

javascript2 min read
2023

discord.js v13 buttons

Discord.js v13 Buttons If you are looking for ways to enhance the functionality of your Discord bot, then you should definitely check out the Discord.js v13 Buttons. These buttons allow you to add interactive elements…

javascript1 min read
2023

javascript get users location

Javascript Get User Location Getting the user's location in a web application can be very useful. There are many scenarios where you might need to know where the user is located such as providing location-based…

javascript2 min read
2023

play audio on button click html

Playing Audio on Button Click in HTML If you want to add an audio file to your HTML page and play it on the click of a button, you can do it by using the audio tag and the onclick attribute. Step 1: Add the Audio File…

javascript2 min read
2023

Self Invoking Function ($()) That Can Be Reused

Self Invoking Function ($()) That Can Be Reused If you are a JavaScript developer, you might have heard about self-invoking functions. Self-invoking functions are functions that are called automatically when they are…

javascript1 min read
2023

js check data type

How to Check Data Type in JavaScript? JavaScript is a dynamically typed language, which means that data types are determined automatically. However, sometimes it is necessary to check the data type of a variable before…

javascript1 min read
2023

how to add two attay into object in javascript

How to Add Two Arrays into an Object in JavaScript As a web developer, I have come across situations where I needed to add two arrays into an object in JavaScript. It can be done in different ways, but here are two ways…

javascript1 min read
2023

react native qr code scanner

React Native QR Code Scanner As a developer, I have worked with different programming languages and frameworks to create web applications. Among these, I have had the opportunity to use React Native to create mobile…

javascript2 min read
2023

puppeeter pdf desktop

Puppeteer PDF Desktop As a blogger, I often have to create PDF versions of my articles for people who prefer to read offline, or to simply save the article for future reference. For this purpose, I have been using…

javascript1 min read
2023

vimrc configuration

Vimrc Configuration As someone who spends most of their time in the terminal, Vim is one of my favorite text editors. One of the reasons I prefer it over other editors is the ability to customize it to my needs. Vim's…

javascript2 min read
2023

how to format phonenumber in reactjs

Formatting Phone Numbers in ReactJS Formatting phone numbers is an essential aspect of web development. In ReactJS, we can format phone numbers by using different libraries. In this blog post, we will explore two…

javascript1 min read
2023

run nodes cleos

Running Nodes with Cleos If you are interested in blockchain development, chances are you have heard of EOSIO, one of the most popular blockchain platforms out there. To interact with EOSIO blockchain, you can use…

javascript1 min read
2023

vscode stateless widget into stateful

Converting a Stateless Widget into a Stateful Widget in VS Code If you are working on a project in VS Code and you have a stateless widget, but you need it to be stateful, you can easily convert it with just a few…

javascript2 min read
2023

loop on an object

Loop on an Object Looping over an object is a common task in JavaScript programming. In simple terms, an object is a collection of key-value pairs, and we need to loop over each key-value pair to access its properties…

javascript2 min read
2023

vue create component

Vue Create Component Vue is a popular front-end framework that allows developers to create user interfaces quickly and easily. One of the key features of Vue is its component system, which allows developers to break…

javascript2 min read
2023

write html in javascript

How to write HTML in JavaScript JavaScript can be used to create and manipulate HTML elements. One of the ways to write HTML in JavaScript is by using the document.createElement() method. This method creates a new HTML…

javascript2 min read
2023

object check null or empty

Object Check Null or Empty Checking whether an object is null or empty is a common scenario in programming. There are several ways to do this in JavaScript: Method 1: Using the if statement The simplest and most…

javascript2 min read
2023

window.onload

Understanding the window.onload event If you have ever worked with JavaScript, you might have come across the term window.onload at some point. It is one of the built-in events in JavaScript that is triggered when the…

javascript1 min read
2023

symbol in keyword for arrow below

Symbol in Keyword for Arrow Below If you are wondering about the symbol that represents an arrow pointing downwards, it is called the "down arrow" symbol. HTML Code for Down Arrow Symbol To insert the down arrow symbol…

javascript1 min read
ESC