Skip to content
the poor coder

Home / Archive

The archive — page 18

18 / 150

2023

fetch api in js

Fetch API in JavaScript Fetch API is a modern way of making network requests in JavaScript. It provides a global fetch() method that returns a Promise which resolves to the Response object representing the response to…

javascript2 min read
2023

react native geolocation

React Native Geolocation Geolocation is an important feature for many mobile applications, allowing developers to create location-based services and navigation features. React Native provides a module called Geolocation…

javascript2 min read
2023

programming javascript

Programming Javascript Javascript is a programming language that is used to add interactivity and dynamic behavior to websites. It is a client-side language, which means it runs in the user's web browser. There are…

javascript1 min read
2023

screen.render is not a function in node

Why is screen.render not a function in Node.js? If you're encountering the error message "screen.render is not a function in Node", you're likely trying to use the render function from the blessed-contrib library in a…

javascript1 min read
2023

how to seturlmimetype in js

How to Set URL Mime Type in JS If you want to set the MIME type of a URL in JavaScript, there are a few ways to do it: 1. Using the XMLHttpRequest object You can use the XMLHttpRequest object to send a request to the…

javascript1 min read
2023

nodejs heap usage

Nodejs Heap Usage As a developer who has worked with Nodejs for a while now, I can tell you that heap usage can be a bit tricky to understand at first. Simply put, a heap is a region of memory that holds data that is…

javascript1 min read
2023

event listener for element lost focus

Event Listener for Element Lost Focus As a web developer, you may often need to perform some action when a user clicks outside of a certain element, such as a form field or a dropdown menu. This can be achieved with the…

javascript2 min read
2023

javascript to get uri

How to Get URI Using JavaScript? URI or Uniform Resource Identifier is a string of characters that identifies a name or a resource on the internet. In JavaScript, you can use the window.location.href property to get the…

javascript1 min read
2023

MYSQL JSON OBJECT

MYSQL JSON Object MYSQL JSON Object is a feature in MYSQL that allows you to store JSON data in a column. This feature was introduced in MYSQL version 5.7.8. Before this version, you could not store JSON data in MYSQL…

javascript2 min read
2023

jquery ui sortable between two tables

jQuery UI Sortable Between Two Tables Sorting tables is a common functionality that is implemented on many websites. jQuery UI has a sortable widget that allows users to drag and drop table rows to rearrange their…

javascript2 min read
2023

jquery clone object

What is jQuery Clone Object? jQuery Clone Object is a method that creates a copy of an existing element, including its properties and events. This method is very useful when we want to duplicate an element without…

javascript2 min read
2023

mongoose unique

Mongoose Unique If you are working with MongoDB and using Mongoose as your ODM (object data modeling), you may come across the need to enforce unique constraints on fields in your schema. This is where the unique…

javascript2 min read
2023

React js props

React JS Props React JS is a widely used JavaScript library for building user interfaces. One of the core concepts of React JS is the use of props. What are Props? Props (short for properties) are a way of passing data…

javascript1 min read
2023

context

What is Context? Context refers to the circumstances or conditions that surround a particular event or situation. It can be viewed as the background or environment in which something occurs, and it provides important…

javascript2 min read
2023

func

Understanding the "func" keyword in JavaScript The "func" keyword is not a valid keyword in JavaScript. However, the term "func" is often used as an abbreviation for the word "function". Functions are a crucial part of…

javascript2 min read
2023

set drawingmode javascript

What is "set drawingmode javascript"? If you are a web developer or a designer, you might have come across the term "set drawingmode javascript" while working with canvas elements in HTML5. The HTML5 canvas element is a…

javascript2 min read
2023

return loop in react

Return Loop in React If you are developing an application using React, you might come across situations where you need to manipulate data and render it in a loop. In such cases, a return loop can come in handy. Return…

javascript3 min read
2023

javascript string slice

hljs.highlightAll(); JavaScript String Slice JavaScript string slice method extracts a part of a string and returns the extracted part in a new string. Syntax The slice method takes two arguments: startIndex - Required…

javascript2 min read
2023

fetch image as blob

How to fetch image as blob in JavaScript? If you want to fetch an image as a blob using JavaScript, there are several ways to do so. I will explain two methods that I have used before. Method 1: Using XMLHttpRequest and…

javascript2 min read
ESC