Category "javascript"

To Discord.js master [duplicate]

i got an error. PLZ HELP ME!! I tried the slash command bot. And i have been getting this error. I have tried hard to solve this error. I gave

Return not waiting for if condition

any one can help me.. I am developing a small project in Electron js. as a beginner I could not find any solution for this issue. I have search a lot similar pr

adding sound effects in agora web sdk [closed]

I have a web meeting app called TweetUp made using Agora App Builder. Now, I want to add sound effects on user join, user disconnect, notifica

Add an element to a const set

How would you add an element to an existing Set when defining it? For example, if I have: const s1 = Set([1,2,3]); const elem = 4; const s2 = s1 + elem; // ? I

What is the order of execution/control flow of "await" in javascript?

I have this piece of code and I'm struggling to understand why the log order is "1,3,2". (async () => { const doSomething = async () => { cons

Access value from a string object - Javascript

Not sure why I am not able to access the keys from a string object data looks like this I am getting this data from a python variable const data = '{regression:

Running a for loop within a Puppeteer test

I'm trying to run a for loop within a Puppeteer test that sends values to a search bar: test('test one', () => { var results = [""] var fuzz = ['ap

Add Promise-Chain part in reuseable function

I got a bunch of functions which consist of a simple promise-chain which is mostly individual, anyway for all my functions a small block in the promise-chain is

Parsing a string into a format to be able to get data from JSON structure

So i was struggling to get my code to recognise this string sent from the front end of my site to the backend as a method to get some data from my JSON file. Pl

Nextjs Idle time

I have a Next.js platform. On refresh, it takes around 6 seconds to load the page. So I was debugging to find out where the delay was to know what I could do to

How to manually call httpTrigger Azure Function within another

I have a JavaScript httpTrigger Function on Azure that I want to call in another httpTrigger Function. Both are in the same resource group. I know about Durabl

How to manipulate Json nested attributes in a JavaScript UDF in Snowflake

I have to write a JavaScript UDF function in Snowflake that receives a variant as the argument and do some value changes for a few keys. All is good but there's

CSS overflow property breaks my interactions with elements in chromium browsers

I don't know why but, when I add an overflow property to my div container, then each element inside is not interactable (it just happens on chromium browsers, i

How to setup Flowbite with Nuxt? [closed]

Here is a sandbox with Nuxt and Flowbite. Imported according to instructions from Flowbite The problem is that the styles of the flowbite comp

How to convert crypto.WordArray to Uint8Array?

The crypto-es library uses its own format for hash the WordArray WordArray { // The number of significant bytes in the words. sigBytes: 16 // An array of

how to add onchnage event on auto genrated html by javascript?

everyone. I am trying to use an api which is by tom tom places autocomplete. there is a code as below: var ttSearchBox = new tt.plugins.SearchBox(tt.servic

Can React Native's PlatformColor get colors for dark mode when the system is in light mode?

I can't find any details on whether or not PlatformColor can access colors that aren't part of the currently selected system theme. For example, if the system t

How to use a third-party API inside next/api?

I am new to NEXTJS and creating a weather application .I am using a openweather api but how can I use it inside the next/api. I had tried by creating a file tod

Send file as buffer

const resp = await client.render(data); const Writable = require('stream').Writable; var buffer = []; const myWritable = new Writable({ write(chunk, encoding,

Is the jsconfig.json file required to be used in every JavaScript project?

I am working with a JavaScript project. Is it is necessary (or recommended) to use the jsconfig.json file in every JavaScript project? Will adding the jsconfig.