Find algorithm of creating folder Nodejs : <p>I have to save images in folders. I took ids of images from mysql and if id is smaller than 1000 Have to create folder 1000, then if it is smaller than 100, create folder 100 etc. Then 2000 and etc. How I should write this? I can do this with if-else statement or switch but it will be very long code. Help please!</p>
