Skip to content

Category: Questions

JavaScript regex get + – * / after a number

Hey I want to make a simple calculator. The calculator should do negatives and so I want to split my input string where I match a “+ – * /” Input is for example “5+-3” so I want to match only the “+” because the “-” is part of my second number “-3&#8…

API image popup finding the correct src path

I have an API image gallery using Unsplash [https://codepen.io/aaron_1986/pen/WNybEmZ]; when I click to enlarge an image – the path of the src is missing. Moreover, I cannot understand how to enter the correct src path to enlarge the image. Answer So basically your issue is the following: Whenever you c…

How can i create a directory using Node.js?

how can i write the name and the path of my directory that i will to create in the same node command, like this and remove the path in my script > node ./stack/create.js ./path/folderName i´m trying to create a directory with this script but i want to remove const path in my script and set the path and nam…