Category "javascript"

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

Variadic curried sum function

I need a js sum function to work like this: sum(1)(2) = 3 sum(1)(2)(3) = 6 sum(1)(2)(3)(4) = 10 etc. I heard it can't be done. But heard that if adding + in

Can someone explain me why "operator precedence" applies to logical operators like "||", "&&" in javaScript

Can someone explain me why operator precedence applies to logical operators like || and && in JavaScript? What does that mean in an operation like: tru

Reduce the react native ios/android size folder

Need help to reduce the react-native file size, my repo is getting heavy. cd ios xcodebuild clean cd android ./gradlew clean ./gradlew cleanBuildCache I tried

Jquery UI Sortable execute function on drop outside or inside the same list

I am working with Jquery ui sortables. I have made bootstrap cards sortable in a table. When i drop a card i want a to execute a function. This works fine when

Why i get added 5 hours instead 4 on daylight saving time when i use the add method and how can i resolve it?

I need to add 4 hours to my moment js date. So for that i am using /* this timestamp is this date 27-03-2045 00:00 */ const someday = moment(2374178400000); con

Calling useState inside useEffect on DOM load

I am building an app to track habits, and when a user is directed to a dashboard, I want them to immediately see their habits as pulled from a database. I have

execute next request once the execution of first request is completed in node

Let's assume I have an endpoint /print. Whenever a request is made to this endpoint, it executes a function printSomething(). While printSomething() is processi

jQuery unable to load mobile size view cart

I am trying to load the view cart area of my html and jQuery code in the mobile size, but unable to do so, I duplicate the function and added a 1 to the end of

LitElement appending custom elements using button

I have a custom LitElement and inside it, I need to have a button that will dynamically append new custom elements (preferably using TemplateResult objects gene

Build a multiplication table

I am having trouble with coding a calculator that asks the user to enter the starting and ending values. The program must use nested for loops. Including row an