Skip to content
the poor coder

Home / Topics / #javascript

#javascript

2,247 posts · page 101 of 113
2023

npm react feather icons

Understanding npm react feather icons If you are a web developer, chances are you have heard of npm, a popular package manager for the Node.js platform. And if you are a React developer, you may have seen the term react…

javascript2 min read
2023

javascript image to variable

JavaScript Image to Variable If you want to store an image in JavaScript as a variable, you can use the Image() object. Method 1: Using Image() The Image() constructor creates a new HTMLImageElement instance with the…

javascript2 min read
2023

cypress run all files in folder

hljs.highlightAll(); Cypress Run All Files in Folder If you are using Cypress, you may want to run all the test files in a certain folder. There are a few ways to do this. Using the Cypress Command Line Interface (CLI)…

javascript1 min read
2023

how to flatten array with reduce in javascript

How to Flatten Array with Reduce in JavaScript If you have a multi-dimensional array in JavaScript and you want to transform it into a one-dimensional array, you can use the reduce() method. The reduce() method applies…

javascript2 min read
2023

how to say "and not" in javascript

How to say "and not" in JavaScript? If you want to exclude something from a condition, you can use the "and not" operator. In JavaScript, the "and not" operator is represented by the exclamation mark followed by two…

javascript1 min read
2023

javascript basic function

Javascript Basic Function As a web developer, it is important to have a good understanding of Javascript. One of the fundamental concepts in Javascript is functions. Functions are reusable blocks of code that perform a…

javascript1 min read
2023

null value check in react js

Null Value Check in React JS As a developer, you may have come across a situation where you need to check if a value is null or not in React JS. In this post, we'll explore different methods for null value check in…

javascript1 min read
2023

composer lib version

hljs.highlightAll(); What is Composer Lib Version? Composer is a dependency manager for PHP. It allows you to manage your project dependencies easily. Whenever you install a package using Composer, it creates a…

javascript1 min read
2023

indefOf

What is indefOf? In JavaScript, the indexOf() method is used to find the index of a specified value in a string or an array. The method returns -1 if the value is not found. The indexOf() method can be used with both…

javascript3 min read
2023

assertion error in jest

What is an Assertion Error in Jest? An assertion error in Jest is an error that occurs when an assertion made by a test fails. When a test fails, Jest throws an error indicating that the expected result of the test does…

javascript2 min read
2023

infrastructure as a service (iaas)

What is Infrastructure as a Service (IaaS)? Infrastructure as a Service (IaaS) is a cloud computing model where the cloud provider offers virtualized computing resources, such as servers, storage, networking, and…

javascript2 min read
2023

tolowercase javascript

Converting Text to Lowercase in JavaScript If you want to convert text to lowercase in JavaScript, you can use the toLowerCase() method. This method returns the calling string value converted to lowercase. Example: In…

javascript2 min read
2023

get screen resolution jquery

How to Get Screen Resolution Using jQuery If you're building a website or web application, it's important to know the screen resolution of the user's device. This can help you optimize your content for their particular…

javascript1 min read
2023

jquery .click function call

JQuery .click Function Call As a web developer, there might be instances where you want to add some interactivity to your web page. For example, you might want to add a button that a user can click to trigger an action…

javascript1 min read
2023

bootstrap modal popup disable click outside

How to Disable Click Outside of Bootstrap Modal Popup? If you are using Bootstrap Modal Popup in your web application, you might want to disable the click outside of the modal popup. This will prevent the user from…

javascript2 min read
2023

update heroku

How to Update Heroku? Heroku is a popular cloud platform that allows developers to deploy and manage their applications. Updating your Heroku application is important to ensure that your application is running smoothly…

javascript1 min read
2023

how to know which button is clicked in jquery

How to Know Which Button is Clicked in jQuery As a web developer, it is common to encounter a scenario where you need to know which button has been clicked by the user. In jQuery, there are different ways to achieve…

javascript2 min read
2023

next images domains config

Next Images Domains Config When it comes to configuring domains for images, there are a few different approaches that can be taken. The most common methods include: 1. Using a subdomain One way to configure domains for…

javascript3 min read
2023

difference between function and arrow function

Difference between Function and Arrow Function Functions and Arrow functions are two ways to define functions in JavaScript. Both are used to perform particular actions and return a value. However, there are some…

javascript2 min read
2023

dlowlad the json fiel in react js pretty formate

How to Download and Format JSON files in React JS Introduction As a React JS developer, having the ability to format JSON files in a readable and easily understandable manner is essential. This is where the "pretty…

javascript2 min read
ESC