Category "javascript"

Unable to retrieve the correct value from a list of object within object

I am quite new to javascript and I've been struggling with this type of challenge. I understand the problem and implement a logic to solve the issue but I am un

Unable to retrieve the correct value from a list of object within object

I am quite new to javascript and I've been struggling with this type of challenge. I understand the problem and implement a logic to solve the issue but I am un

Select all and Select None buttons in Autocomplete Material UI React

I want to implement two buttons Select All and Select None inside Autocomplete React Material UI along with checkbox for each option.When Select All button is c

How to find the weight of the heaviest path of an undirected, unweighted graph (M(d) of the graph), using adjacency matrix

In the image A-L is the longest path, but L-M is the heaviest The heaviest path of the graph is the path with the most edges connected to it, for this current c

Bootstrap datetimepicker not working inside Bootstrap Modal

I am facing issue in showing bootstrap's datetimepicker inside modal. I want to make form inside the modal on which I need a datetimepicker to pick date and tim

Quick.db + Discord.js Leader Board

Hello I Was Making A Leader Board For My Xp System And The Points One Worked! But The Mention Gives An Unknown Id And Its The Same Always Here Is What It Shows

ES7, ES8, ES9, ES10, ES11 Browser support

Regarding compatibility between ECMAScript specification and actual implementation; It is fairly easy to check out the data about browser support for ECMAScript

Password matching validation using the Joi schema in React not working

I want to create a password change form in React. Here is the code of my component : import React, { Component } from "react"; import Joi from "joi-browser"; im

Decode constructor arguments in solidity

I playing Ethernaut Level 8. The goal is to get access to the private password state variable and unlock the contract. I know one could use await contract.unloc

Intermediate Algorithm Scripting: Search and Replace

Question Perform a search and replace on the sentence using the arguments provided and return the new sentence. First argument is the sentence to perform the

HttpContext.Request.Form threw an exception of type 'System.InvalidOperationException' - why?

I have a strange problem. We are using C# for an ASP.NET MVC application, and JavaScript with jQuery and Data Tables for the frontend. In the frontend, a part o

Is there a way to detect collisions between the ball and the lines?

I'm currently working on a little physics simulation, and had some trouble figuring out how to get the ball to collide with the platforms. Here's my code: var a

TypeError: history.push is not a function Why this show sometime

I don't understand why this error not come every time sometimes the code working and sometimes not working const dispatch = useDispatch() const userDetails = us

How to set maximum cropbox size in cropperjs?

Hello i just want to ask how can i set the maximum size of my cropbox? Because i got a image frame which have a 400x400 image size then inside of it is a box co

node.js + mysql: "Cannot enqueue Handshake after already enqueuing a Handshake."

I'm attempting to make two functions, one which retrives an object from an SQL database, the other which saves an object to the same SQL database. I am using no

Convert ImageBitmap to Blob

I'm using createImageBitmap() which creates an ImageBitmap file. How do I convert this file to a blob or ideally PNG so I can upload?

JS array of objects is overwriting other indicies

My object method "mutateWeights" is overwriting the weights of other objects in the array. In the object constructor: var Bot = function(id, w) { this.id = id

Svelte: Uncaught ReferenceError: exports is not defined

Background I am trying to use dgraph-js-http in a Svelte application. Error The initial error I was facing was: Uncaught ReferenceError: buffer is not defined

Customize col on a kendoGrid data

Hi all I have done download a kendoGrid data to excel part as below. $("#1").data("kendoGrid").saveAsExcel(); kendogrid column are below 1.ist 2.7st 3.8sy colu

Removing nickname from localStorage string

I'm trying to check localStorage for a nickname and if it includes the nickname remove it from the localStorage. window.removeNickname = (n) => { const n