Skip to main content

Questions tagged [javascript]

For questions about programming in ECMAScript (JavaScript/JS) and its different dialects/implementations (except for ActionScript). Note that JavaScript is NOT Java. Include all tags that are relevant to your question: e.g., [node.js], [jQuery], [JSON], [ReactJS], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

javascript
Filter by
Sorted by
Tagged with
-1 votes
0 answers
11 views

is Competitive Programming still worth learning in the age of generative AI models? [closed]

It seems a silly question. I want to read and practice competitive programming concepts and problems. I have doubted that many programming problems can be solved with ChatGPT and other AI models. Is ...
Welemhret's user avatar
0 votes
0 answers
4 views

How can I type an array of class instances with different generics that all extend the same interface in TypeScript?

I have a Model constructor that looks like this: interface Schema { foo: string; bar: string; } class Model<T extends Schema = Schema> {} I am implementing it to create models as: ...
noahmason's user avatar
  • 123
0 votes
1 answer
15 views

RegEx to find string representing local paths

I'm trying to find all strings which are local paths like: @/path/to @@/path/to ./path/to ../path/to ../../path/to And at the same time ignore all string, which could be a module like @next/module ...
user3142695's user avatar
  • 16.9k
0 votes
0 answers
4 views

How to enable SSR in existing react js

I have a existing react js project with redux. Now I want implement SSR concept (Server side rendering. I have tried next.js and vote other ways also like express js. But unfortunately not worked any ...
Uppunuthula Prashanth Goud's user avatar
0 votes
1 answer
22 views

Character limit in a regular expression Javascript [duplicate]

Regular expression requirements: from 3 to 5 characters, at least one capital letter, and at least one number. My expression now looks like this. The character limit does not work. /((?=.*[A-Z])(?=...
0 votes
0 answers
4 views

Form overlay cannot be filled or submitted on already existing video.js video element

I made a chrome extension that uses a basic form to input specific time stamps onto videos present on web pages. The extension is currently working for both Youtube and Spotify videos as is: I can ...
Chris's user avatar
  • 96
0 votes
0 answers
6 views

Generic JS Function for Async Parallel and Sequential

I'm looking to make 2 generic, reusable functions to process parallel and sequential callouts. Currently, we use inline await to handle sequential... export async function init() { const results1 = ...
ThatTreyGuy's user avatar
0 votes
1 answer
10 views

Hide Bokeh's toolbar (JavaScript)

I'm trying to hide the toolbar from the following Bokeh example without any success: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> ...
Lucas Almeida Carotta's user avatar
0 votes
0 answers
12 views

Disable bootstrap offcanvas closure on backdrop click in Blazor .NET app

I have been trying to create an offcanvas window form and I want to make sure the offcanvas window does not close unless the user explicitly click the close button on the offcanvas window. Due to ...
Syed Akbar's user avatar
0 votes
1 answer
15 views

NextResponse.json() in route.ts is not work (next js)

I want to transfer data from one server to another server and it is transferred successfully, but I don't know why the destination server has a problem when sending a response export const config = { ...
Roochiar Fazli's user avatar
0 votes
0 answers
7 views

How to send a standalone message without a reply or interaction in discord.js?

I'm trying to figure out how to send a message to a discord channel through a function call instead of a user sending a message. I'm trying to make something that can trigger a message through an ...
TheEmeraldEnd's user avatar
0 votes
0 answers
14 views

How can I redirect web push notifications to open in a new tab

I need to automatically redirect push notifications on a specific chrome website to open in a new tab. Can this be achieved using a tampermonkey script, javascript, or any other way? I am always ...
JOSEPH DANIEL's user avatar
0 votes
1 answer
27 views

Lagging scroll-based animations

I want to implement slow scrolling. I decided to create a container 10 times larger than its content. The content is then moved via JavaScript, based on scroll events. The example is in React, but ...
Boris's user avatar
  • 5,144
-2 votes
0 answers
11 views

How to optimally draw images on canvas and implement drag functionality on them?

I am trying to develop an Image Editor, which provides functionality to add multiple images on canvas and make image draggable. I have implemented a solution but it sky rockets my CPU usage. On every ...
Naman Shankhydhar's user avatar
0 votes
0 answers
14 views

Jest don`t respect BEFOREALL

let maybe = test.skip; //code to SKIP TEST beforeAll(async () =\> { maybe = test //CODE TO DONt SKIP TEST }); describe('this a describe', () =\> { maybe('...
user25778937's user avatar

15 30 50 per page
1
2 3 4 5
…
168788