Category "javascript"

How do I access response information from COINGECKO API for coins with more than one word id?

I have 6 crypto coins I'm getting current price from CoinGecko's API I have spans inside of divs set up on my html page, where the price span html updates after

Can't generate cucumber reports after stop cypress runner

I am using Cypress + Cucumber. Trying to fail test and skip steps if one of the failed. For this, I'm using the following code: afterEach(function () { if (

Can we configure and select Playwright launch options based on env?

Context : I am running a bunch of Playwright e2e tests for a enterprise web application, which are run on Github actions, as a part of the CI/CD process. To lau

Find html text between two tags using jquery or cheerio

I thought that this would be rather straightforward but nothing really much work. I am writing this using cheerio in node js. Basically, I have the following HT

H88 Error: Invalid account: #0 for network: mumbai - Expected string, received undefined

This is my hardhat.config.js file code module.exports = { solidity: "0.8.4", networks: { hardhat: { chainId: 1337 }, mumbai: { url:

Microsoft Dynamics CRM update number field from another entity

Can anyone help me with a JS code where I can update a number filed during a record creation? For example: You have an entity call cars that have a number value

Inventory management on google sheet

Google sheet stock inventory Hello everyone, I'm turning to you because I can't get my code to work on google Sheets. The purpose of the program is to be able t

how to make an iterable type in type script that has a key value pair

I am using type script and I want to make a type that represents an object like this the keys generated are genrated dynamically how do I do that { dog:true,

How to call getter and setter from within a javascript class

Is it possible to call getter and setter from within own class ? If yes what's the valid syntax instead of invalid this.gettext(); in below class : class T

How to select multiple class class with same name in JS

I use PHP to dynamically render these lists that I fetched from the database, and each one has the same class, because I can't change it, it renders dynamically

Increase div id number with new div fields

The following script creates new input fields up to 4. I need to know how can I increase the ID also as follows.. with first click, "var fieldHTML" generate : &

Minimax Algorithm - Tic Tac Toe AI not selecting best move

I've been working on writing a minimax algorithm for my tictactoe game, but it doesn't seem to be choosing the correct move. It is possible to win against the c

How to convert the image into qrcode in laravel?

convert the image into qr code

React native wont run after ejecting from expo

I developed an app using the managed expo workflow, however it's required to use a native apis (in this case WebRTC) and therefore I ran expo eject to switch to

Is there a thirdparty or solution for get PWA or WEB Push notifications in IOS

I designed a website and I want to send it to its notified users but apparently iOS does not allow this Do you know any software (like a free messenger) that ca

All Combinations of Riddle

I am searching for a function in Javascript that takes in a String like this: var str = '2?5?8?1?4?7?9?2?3' and generates all possible combinations of the ridd

"Expected an arrow function after this type parameter declaration" error

I got this error while running yarn start: $ yarn start yarn run v1.22.17 $ run-s build exec $ babel src/ -d lib/ SyntaxError: .../src/App.js: Expected an arrow

Nested List into JSON File

Am still a complete beginner at programming and have now been given the task of converting with JavaScript an object in Nested List format, which I get given as

Apollo useQuery running twice instead of once when firing multiple queries

in my <Homepage/> component I fetch an authed user and posts using Apollo and useQuery. I can see in my network tab that each one of these queries is runn

How to call more than one function in javascript onclick event? [duplicate]

<Button onClick={(e)=>setId(_id); handleDelete()}>Delete I tried this way, but it gives error.