Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Vue warning "use the "name" option for better debugging messages" when calling filter

I'm having a little warning showing when I call my Vue filter, my filter works perfectly but there's still a warning throwing in the console, I'd like to remove it Here's the error that I have on the ...
0
votes
0answers
12 views

JS keydown + keypress + preventDefault

What we have: keydown event + preventDefault prevents keypress event (proof: https://stackoverflow.com/a/57401334/9398364) stopPropagation doesn't help at all We can't simulate keypress with ...
0
votes
0answers
5 views

Fetching documents in a subcollection of a cloud firestore database does not return any data

I am using cloud firestore database to store documents for user inside a next.js application, the collection path is as follows collection "userDocs"-> document "userEmail" ->...
-1
votes
2answers
15 views

Map though an objects array to filter an Array in JavaScript

I have an id and with that i want to map through an array and get a new array where only the containing id items will be there. So,the array is like : var list = [ { genre_ids: [28, 12, ...
0
votes
1answer
15 views

Pass the Message project problem with setTimeout or setInterval

I'm making beginner javascript pass the message project I'm having a problem with this: If no input is submitted, an alert should show (using the ‘show' class in the CSS file) in the “Last Message ...
0
votes
1answer
13 views

Why is this not executed in the forEach method?

client.on('guildMemberAdd', async (member) => { const joinRoles = db.getRoles(member.guildId); joinRoles.data.forEach(element => { console.log(element.role + "meee1") ...
0
votes
0answers
8 views

Nuxt js Custom cursor event listener not working after route change

I'm currently building a new website for our studio but can't get the custom cursor to work properly. Here's a custom cursor built with gsap and the result was great except when I navigate to another ...
0
votes
0answers
8 views

Internal server error after firebase init

i want to do a simple application with a small firestore database, but after i finish initializing my app if i try to emulate hosting, it has some server issues. This is an example (the hosting port ...
1
vote
0answers
10 views

Sticky sidebar in shiny dashboard with scrolling

I have a shiny app with long vertical pages that require scrolling from the user. The dashboard has a sidebarpanel with filters. That sidebar has a fixed position so that the user can always see what ...
0
votes
0answers
15 views

How to determine a Perfect Power efficiently?

Challenge: https://www.codewars.com/kata/57c7930dfa9fc5f0e30009eb/train/javascript Hi I have been trying this problem for many hours but unfortunately my code is taking too long to pass: function ...
-2
votes
0answers
10 views

How to solve this (Campus Bikes) stable marraige problem on leetcode

Link to problem https://leetcode.com/problems/campus-bikes/ Test case im failing: [[906,92],[397,522],[543,253],[839,747],[527,955],[14,515],[440,825],[506,429],[108,133],[702,689],[134,841],[889,148],...
0
votes
1answer
16 views

Alternative to global variable when using clearTimeout & setTimeout

I'm on my first week of testing Redux. I'm wondering if there is a more elegant / less hacky solution to using a glodal variable for the timeoutID? clearTimeout is used to guarantee that the ...
0
votes
0answers
6 views

Continuous audio stream to and from python server

I am a student and for a project, I want to have a webpage that sends a stream of audio continuously to a python server so that I can apply wake word detection and eventually speech recognition using ...
0
votes
0answers
18 views

How to process updated object property values with Javascript and React?

I am looking to use Node and React for displaying dynamic table data where one property, `cost' will be updated via a WebSocket listener and perform some functions, i.e. find highest/lowest, or ...
-1
votes
0answers
10 views

How to upload file from local csv file?

i have a csv file that contains full path for multiple image files e.g c:\folder1\image1.png,c:\folder1\image2.png etc. I have to read the path from the file and upload the image to the backend using ...

15 30 50 per page
1
2 3 4 5
154219