I am trying to create a program that analyses some data. The data I am collection form the internet with node.js. I'm having a very hard time with the fact that the code is asynchronous, and I'm getting a lot of bugs because of it.
I know that it is not efficient at all, but is there a way to write the whole code shynchronously?
*I've used a lot of promises and patched a lot of bugs, but I still keep getting bugs because the code is asynchronous, and I'm tired of thinking of creative ideas to make my code work.