Relative Content

Tag Archive for javascriptrestasynchronous

Javascript-function only runs if called before another function

I am getting to my limits here. I don’t get the way asynchronicity behaves in my code. I am using a rest API from a js. Within my code there are to functions that are somewhat similar. They read keys and addresses from a json and they are making a API call. One of the functions behaves differently, depending on where in the script it is called. It really confuses me.This is my script: