Skip to content
the poor coder

Home / Topics / #javascript

#javascript

2,247 posts · page 78 of 113
2023

import tippy react

Importing Tippy React If you're looking to add tooltip functionality to your React app, Tippy React is a great option. Here's how you can import it into your project: Option 1: NPM The easiest way to get Tippy React is…

javascript1 min read
2023

Square star pattern in JavaScript

Square Star Pattern in JavaScript If you are looking to create a square star pattern in JavaScript, you can do so using nested for loops. This is a common programming exercise and can help you understand the basics of…

javascript2 min read
2023

object as props react

Understanding Object as Props in React React is a popular JavaScript library used for building user interfaces. It allows developers to create reusable components that can be used throughout their applications. One of…

javascript2 min read
2023

javascript ip address

Javascript IP Address If you want to get the IP address of the client using Javascript, there are few ways to do it. Method 1: Using a third-party service One way to get the IP address is by using a third-party service…

javascript2 min read
2023

js delete item from array

How to Delete an Item from Array in JavaScript If you are working with arrays in JavaScript, at some point, you may need to remove an item from it. There are multiple ways to do so. Let's explore them one by one. Using…

javascript2 min read
2023

how expires mongodb

How to Expire MongoDB Data? If you are working with MongoDB, you might need to delete or expire the data after a certain period of time. In this case, you can use MongoDB's TTL (Time-To-Live) feature to automatically…

javascript2 min read
2023

nested array destructuring javascript

Nested Array Destructuring in JavaScript If you are working with arrays in JavaScript, you might need to extract nested values from them. This is where nested array destructuring comes in handy. Let's assume we have an…

javascript1 min read
2023

Create array literal

Create Array Literal An array is a collection of values stored in a single variable. In JavaScript, arrays are created using array literals, which are a list of comma-separated values enclosed in square brackets []…

javascript1 min read
2023

bindbidirectional vue js

Binding Data in Both Directions with Vue.js If you’re using Vue.js, you probably already know that it’s a reactive framework that makes it easy to manage your data, and to update your UI automatically whenever your data…

javascript2 min read
2023

convert arguments to array javascript

How to Convert Arguments to Array in JavaScript If you want to convert the arguments passed to a function into an array in JavaScript, you can use the built-in Array.from() method or the spread operator (...). Let's…

javascript1 min read
2023

adding js function to a button

Adding JS Function to a Button If you want to add a JavaScript function to a button, there are a few ways to do it. Here's what I've learned: Method 1: Inline Event Handler The easiest way to add a function to a button…

javascript1 min read
2023

materialize modal trigger

Understanding Materialize Modal Trigger Materialize Modal is a type of pop-up window or message box that is used to display content or information. It is a feature of Materialize CSS framework which provides an easy way…

javascript2 min read
2023

add javascript

How to Add JavaScript to Your HTML Document Hello there, fellow bloggers! Today I'm going to discuss one of the most essential and exciting topics of the web, which is adding JavaScript to your HTML document. As you…

javascript2 min read
2023

how to pass basic auth for api in angular 11

How to Pass Basic Auth for API in Angular 11? Passing Basic Auth for API in Angular 11 is a common requirement for many web applications. Basic Auth is a simple authentication method that requires a username and…

javascript2 min read
2023

find by first letter array

How to Find Elements Starting with a Specific Letter in an Array As a programmer, you may often need to find elements in an array that start with a specific letter. There are several ways you can accomplish this in…

javascript2 min read
2023

How to access return value of promise

How to Access Return Value of Promise Promises are a way of handling asynchronous operations in JavaScript. They are used to handle operations that may take time to complete and return a value at some point in the…

javascript2 min read
ESC