Skip to content
the poor coder

Home / Topics / #javascript

#javascript

2,247 posts · page 79 of 113
2023

javascript - Return from a promise then()

hljs.highlightAll(); Javascript - Return from a Promise then() If you are working with promises in Javascript, you will most likely come across the .then() method. This method is used to handle the result of a promise…

javascript2 min read
2023

how to use nodemailer

How to Use Nodemailer? If you are looking for a way to send emails from your Node.js applications, then Nodemailer is undoubtedly the best option available. Nodemailer is an open-source library that allows you to send…

javascript2 min read
2023

show json data in table using javascript

Show JSON Data in Table Using JavaScript If you want to display your JSON data in a table format on your web page, you can easily do so with JavaScript. Here's how: Step 1: Create a Table and a Head Row The first step…

javascript2 min read
2023

Unrecognised font family React native vector icon

Unrecognised font family React native vector icon If you are facing the error message "Unrecognised font family React native vector icon" while using React Native Vector Icons in your project, it means that the required…

javascript1 min read
2023

Converting JSON to JavaScript Object

Converting JSON to JavaScript Object JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is used to…

javascript2 min read
2023

FreeCodeCamp JavaScript CashRegister Solution

FreeCodeCamp JavaScript CashRegister Solution If you're looking for a solution to the FreeCodeCamp JavaScript CashRegister challenge, you're in the right place. I recently completed this challenge myself and wanted to…

javascript6 min read
2023

how to prevent ajax from call twice

Preventing AJAX from Calls Twice As a web developer, I have had numerous encounters with AJAX calls being executed twice. This can be quite frustrating especially when dealing with complex projects that require multiple…

javascript2 min read
2023

add to a list mongoose

Adding to a List Using Mongoose If you're working with MongoDB and Node.js, you may be using Mongoose as a way to interact with your database. Mongoose is an ORM (Object Relational Mapping) library that allows you to…

javascript2 min read
2023

move element jquery

Move Element using jQuery Have you ever wanted to move an element on a webpage dynamically? jQuery makes it easy to move elements around using simple code. Method 1: Using .appendTo() and .detach() One way to move an…

javascript2 min read
2023

open bytes in new tab angular

How to Open Bytes in New Tab in Angular If you are working with Angular, you might need to open a byte file in a new tab. In this tutorial, we will show you how to do that in a few easy steps. Method 1: Using the Anchor…

javascript1 min read
2023

javascript array splice example

JavaScript Array Splice Example JavaScript array splice is a method that allows you to add or remove elements from an array. It can be used to modify an array in place, without creating a new array. In this post, we…

javascript2 min read
2023

freecode camp first line second line javascript

My Experience with Freecode Camp's First Line, Second Line and JavaScript When I first started learning to code, I was overwhelmed with the different programming languages and frameworks available. That's when I…

javascript1 min read
2023

iterate loop over mapping in solidity

Iterate Loop Over Mapping in Solidity If you are working on a smart contract in Solidity, you may need to iterate over a mapping at some point. A mapping is a key-value pair data structure, similar to a dictionary in…

javascript2 min read
2023

form validation using jquery

Form Validation using jQuery When it comes to web development, form validation is an essential process that helps ensure data accuracy and consistency. One of the popular JavaScript libraries used for form validation is…

javascript2 min read
2023

check if date is less than today moment

How to Check if a Date is Less Than Today Moment If you want to check whether a given date is less than today's date, you can use JavaScript's built-in Date object. Method 1: Using getTime() method of Date object The…

javascript1 min read
2023

set a checkboks to defoult checked

Setting a Checkbox to Default Checked Setting a checkbox to default checked can be useful in situations where you want to pre-select an option for the user so they don't have to manually select it. Here are a few ways…

javascript1 min read
2023

JS sound

JS Sound JavaScript is a powerful programming language that can be used for a variety of purposes, including playing sound on websites. There are multiple ways to play sound using JavaScript, and each method has its own…

javascript2 min read
ESC