Skip to content
Advertisement

Tag: javascript

UnhandledPromiseRejectionWarning : error handling in an async callback function

I have an async callback function, which throws an error if some condition isn’t met. but I get the below error (node:77284) UnhandledPromiseRejectionWarning: Error: Not Found UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). My Code : What

How to print items within an array sequentially

I’m learning Node and I’m attempting to create a readme generator. I’ve created my prompts to confirm if the user would like to add gifs/images to their markdown. I’ve made it so that if the user confirmed then they can enter in the number and then I pass it into a for loop that generators the markdown text for adding

How to change CSS class to an children inside a SVG?

I am making and animation the objetive is change the xlink:href inside a SVG. (this is for change a shape), and change class respect to their position inside. This is my SVG The class in every rectelement, has a different animation-delay according to position (first execute at 0s, second at 2s, third at 4s and so on). With JS I

Advertisement