Skip to content
the poor coder

Home / Topics / #javascript

#javascript

2,247 posts · page 44 of 113
2023

javascript hashtable

JavaScript Hashtable As a web developer, I have often come across the need to store and retrieve key-value pairs in JavaScript. One of the data structures that can be used for this purpose is a Hashtable. A Hashtable is…

javascript2 min read
2023

update to node 15.11

How to update to Node.js 15.11 If you're a Node.js developer, you know that staying up-to-date with the latest version is important to ensure your code runs smoothly and efficiently. The latest version, as of the time…

javascript1 min read
2023

target child event

Target Child Event Target Child Event is a term used in web development when you want to trigger an event on a child element while clicking on its parent element. This technique can be used to improve user experience as…

javascript2 min read
2023

change css variable with javascript

Changing CSS Variables with JavaScript As a web developer, I have come across situations where I needed to change CSS variables dynamically using JavaScript. For instance, I had to implement a feature where the…

javascript1 min read
2023

hide status bar react native

How to Hide Status Bar in React Native? If you're building a mobile application using React Native, you might want to hide the status bar to give your app a cleaner look. The status bar is the bar at the top of the…

javascript2 min read
2023

new line in js

New Line in JavaScript When working with JavaScript, it is common to add a new line in your code for clarity or organization purposes. There are a couple of ways to achieve this. Method 1: Using the \n Escape Character…

javascript1 min read
2023

count string in linked list javascript

Counting Strings in a Linked List Using JavaScript If you're working with a linked list in JavaScript and need to count the number of strings within it, there are a few different approaches you can take. Method 1: Using…

javascript2 min read
2023

how to recognize an array in javascript

How to Recognize an Array in JavaScript? Arrays are one of the most commonly used data structures in JavaScript. They are objects that store multiple values in a single variable. Each value in an array is called an…

javascript1 min read
2023

count selected gridview rows in javascript

Count Selected Gridview Rows in Javascript Have you ever encountered a situation where you need to count the number of selected rows in a gridview using Javascript? If yes, then you are in the right place. In this post…

javascript2 min read
2023

include node_modules from search vscode

Include node_modules from search vscode If you're a developer, you know the importance of node_modules in your code. It contains all the dependencies required for your project to run smoothly. However, sometimes it can…

javascript2 min read
2023

run function once javascript

How to Run a Function Once in JavaScript? If you want to execute a function only once in JavaScript, there are several ways to achieve this. Let's explore a few of them here. 1. Using a Flag Variable One way to run a…

javascript1 min read
2023

react pass props to children

React Pass Props to Children Passing props to children components in React is a common pattern that allows for flexibility and reusability in a project. Method 1: Using Props The most common way of passing props to…

javascript3 min read
2023

js add zeros before number

How to Add Zeros Before a Number in JavaScript If you want to add zeros before a number in JavaScript, you can use the padStart() method. This method adds a specified number of characters at the beginning of a string…

javascript2 min read
2023

js change a value in separate module

How to Change a Value in a Separate Module using JavaScript As a web developer, I have come across situations where I needed to change a value in a separate module using JavaScript. One common scenario is when working…

javascript2 min read
2023

how to add bootstrap in angular cli

How to Add Bootstrap in Angular CLI Introduction Bootstrap is a widely-used CSS framework that makes it easy to create responsive and attractive web pages. Angular CLI is a command-line interface that simplifies the…

javascript2 min read
2023

api

What is API? API stands for Application Programming Interface. It is a set of protocols, routines, and tools that developers use to build software applications. It specifies how software components should interact and…

javascript1 min read
2023

combine 2 arrays javascript

Combining 2 Arrays in JavaScript As a web developer, I have had to combine arrays in JavaScript numerous times. It is a common task when working with data, especially when you need to merge multiple sets of data into a…

javascript2 min read
ESC