Category "javascript"

Change a agSelectCellEditor drop down value using selenium

I am trying to access values in a drop down which when I inspect, nothing is been in element inspector. I confirmed with developer what type of drop down is tha

Does each element of an array get passed as the argument of the callback function when using map() and filter()? [duplicate]

I have basic knowledge about map() and filter() but I want to know a bit more. When using map() or filter() on an array, does each element of

Write a function which return the digits

Given a varying number of integer arguments, return the digits that are not present in any of them. Example: [12, 34, 56, 78] => "09" [2015, 8, 26] =&

React state returns undefined when passed as object value

I want my id to be increased every time this function is executed,but when I console the object id returns undefined let [count, setCount] = useState(0); c

Karma fails to load test file: "Failed to fetch dynamically imported module"

I'm trying to test my LitElement components with Karma but importing PDF.JS is causing the test file not to be loaded. Example of the LitElement component file

Sequelize scope on create

I am quite new to sequelize and trying to use it with sequelize-typescript. I have a user model like this: @Scopes(() => ({ authenticated: { attr

Decrement font-size on condition, why is my recursive function not working?

I have a <p> element inside a parent <div> container. The parent container is sized with width and height as a % of the viewport. Upon window-resize

HTML & JavaScript. Trying to target a text input from an adjoining anchor

I have an HTML table. On the table I have an input textbox. Next to it. (appended in the HTML) I have an anchor. All I want the anchor to do (at the moment), is

Upload image into div with premade graphic and export div as jpg or png

Looking for a solution for screenshot of div that has premade graphic, where a user can upload their picture / avatar into or on top of (image covering the circ

How to a output message in separate message boxes for a chatbot

So I'm trying to build a chatbot using python, flask, nlp, js. But I'm new to js and just started to learn about it. Output How should I output this prediction

Await component doesn't send OK

I would like to do a await message and list for my setWelcome but it does not send me Ok when I select in the Select menu and I do not know if it is good for th

String together several operations in javascript calculator

I need help with my calculator. I don't know how to string together several operations. Can someone help me out with this or give some tips how to work forward.

Data showing undefined in table

I am trying to get my data into an HTML table. The JavaScript is properly detecting the data and is showing two rows in the table, which is correct. The issue i

Make Vue-ECharts chart fit in vuetify v-card

I am desperately trying to make vue-echart work within a v-card component of vuetify. Somehow, I am not able to adjust the size of the canvas the chart is drawn

Unable to access state - React.js working with Websocket

This is my first post here, so nice to meet you all. I have recently started my adventure with React, so my question probably will not be very challenging (it c

Async/Await function failing

I'm trying to build a nodeJS script that pulls records from an Airtable base, bumps a UPC list up against the [UPC Item DB API][1], writes the product descripti

How can I hide the searchBar in a responsive navbar?

I have a problem with the searchbar not hiding when reducing the size of the window. Maybe there's a better way to solve the problem but hiding the searchbar, h

Is there any way to mock API responses using snapshots?

I'm currently trying to find a good way to mock API responses for a subset of end-to-end tests, and was thinking it would be swell if there was a way to take sn

drag the object group in XY plane only in three.js

The objective is to drag the objects in the scene using mouse. zoom in and zoom out are working properly. while dragging the object is rotated, but not dragged.

Run assertions directly in browser context in Playwright

I would like to test some apis which are tied directly into browser and not necessary have UI representation. Simpliest test beeing something like: import { tes