Category "javascript"

Getting "Failed - File incomplete" in Chrome when downloading file from MongoDB

My JavaScript application allows users to download a file. The page shows a clickable link to the file. The file is stored in MongoDB. When I click on the link

twilio error "accountSid must start with AC"

const express = require("express"); const app = express(); const PORT = 3000; require("dotenv").config(); const accountSid = process.env.TWILIO_ACCOUNT_SID; con

I want to create an html element, using javascript, with content drawn from two initialized arrays on page load

I want to create an html element, using javascript, with content drawn from two initialized arrays on page load. This is how far i have gotten but, aside from t

Function stops without any logs in firebase (sometimes works well.. sometimes partly) - confused

Can you please share your thoughts or experience why this can happen: I have a folder on firebase cloud with a bunch of images (jpeg, png). It can contain from

How do I insert ThreeJS objects into Vue components? I am currently using Vue 3

How should I start using ThreeJS objects in Vue components? I was wondering whether someone could help me write a minimal working example of using the ArrowHelp

Reload does not change POST state

I have a problem where I want to reload the page on submit. I did this with the simple script function shown below. However, the echo'd "hello" does not disappe

How can I update nested array in Firestore?

Is there a way to update the likes and replies with firebase firestore? I have reached that moment when I press on like on a single comment but I have only the

Javascript - Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

I have this code in my vue component <template> <div class="container-fluid p-0"> <div class="row m-0"> <div class="col-12 vh-1

Edit yaml files using js function

I am trying to edit a template-yaml file using a js function. The js function will get a name of organization: org and this will replace corresponding values in

Karate environment value not getting set in config json

I have config-base.js which is loading the 'env_data.json' file. The java script in config-base.js is not setting the values in config as expected. I am trying

How do I upload multiple files in array in Angulars reactive forms, from an API and send the data as a number to the array

***ERROR IMAGE: *** https://ibb.co/JKd0hV3 Who can help me solve this problem, I get a 490error whenever I run this code. Am I missing something or need to refa

What does the Array method `reduce` do?

I found a very useful function reduce, and I'm using it, but I'm not sure if I understand it properly. Can anyone help me to understand this function? Example:

ace editor - generate file preview

im wondering if its possible for ace editor to generate an overview of the current file, like i see in some other text editors, like in the image from vscode be

Check if a date include a certain hour

I'm working on a fullcalendar project and I was wondering: is there a way in Javascript, with a new Date object, to check if an event include a certain period o

NodeJS app can't work because of dependencies script being blocked due to MIME type error

my teammates and I are currently developing a web game with babylonjs and we need to deploy it on heroku. So I created a file app.js to be the "server" side, he

Why am I getting an error in my Route Redux code?

I can't find my error in the code. Could someone explain to me. Test: Nav:' should be rendered on the path "/". The "Home" component should be rendered only on

Have a paper js file that can be imported as a module

I am making a game and I would like to have my code split into two files. One, an ordinary javascript file for the gameplay, the other a paperscript file for al

React render message to stay at the bottom

Currently working on a 1:1 live chat messenger. when i send a message its shows up at the bottom of chat where i want it to, but upon page refresh it returns to

which/how to properly use a loop for html change with Javascript?

I am new in Javascript and trying to change the HTML content of a line. I've been helped a little by a friend who made this code for me, but I'm running into ma

Top level await in WebdriverIo Mocha tests

I am trying to use top-level await with WebdriverIO but keep getting below error [0-0] import axios from 'axios'; [0-0] ^^^^^^ [0-0] [0-0] SyntaxError: Cannot