I’m learning MongoDB and Mongoose, and I’ve watched instructors advise to use the save() function to save the changes made to the database. But I’m still making changes successfully without using save(). I’ve made two functions to add a document to the database, one with using save() a…
How do I know when an async aws lambda ends?
It will be easier to understand if you look at the image: I am coding using AWS Lambda in node.js. I tried referring to the code above, but it failed. A lambda invokes B lambda. And B lambda invokes many C lambdas asynchronously. How do I know that B lambda ends with C lambdas? I can’t do this so Lambda
I’m trying to print form inputs data on the console of node.js, but the console is showing empty Curly braces
I’m trying to get form inputs data on the console of node.js, but, it’s showing an empty Curly brace. I used postman to check whether the data is received or not, it’s working well, data has been received successfully on the terminal console. <——– I have taken the below …
Error in object generation to logic gates simulator in p5.js
in my logic gates simulator I am doing another object to generate to the canvas and I am doing a frequency generator but when I have the onclick function on the button so that it is generated, my frequency does not work and the whole object does not work. Someone would advise me thank you. The link to the who…
i want to change image using for loop in js without using jQuery
i don’t understand why this is not working? plz tell me what i missed in this code ** html ** ** js ** Answer Is this what you wish to achieve?
Pwa installation own button installation in JS + HTML + CSS
I know how to do a pwa integration and the browser proposes the installation with the message “Add — to the home screen”. My wish is as follows: I would like to set up on the integrated PWA website a personalized button l “Install mobile version” in HTML so that my users can inst…
playlist autoplay but has not sound
I have a playlist in javascript, when it is muted the video plays automatically, otherwise it doesn’t play automatically. How can I make autoplay and muted false? My code HTML is: Answer You can’t play a video automatically with sound. There’s a thing called “Autoplay Policy”, at…
How to reuse a function in JavaScript for the same class, specific to the one clicked on?
I would like to simplify my code, to use the same function, for the same class, but with only triggering the one that’s being clicked on (changing the text). With plain JavaScript. I got it working now, but I know it can be simpler, and reusable, even if I were to use 100 of the same thing. Could you he…
Why does my localhost:3000 not work (error 500)
I am trying to follow a tutorial but i run into problems before i even have written a line of code. only terminal commands as seen below: When i go to the localhost i get presented a blank page (in the tutorial it shows a visual and some text. When i inspect the page i get presented by there errors:
how to make blur all option after select 2 from 4?[jquery]
I want select 3 option from many.After select 3 option,all option will be blur so that anyone can’t select more. Here I added my code,please check it. Link to File Answer Consider the following. Adding a wrapper allows for better reference to the parent. You can then check how many .fill elements there …