If you have been writing JavaScript for a while, then you have likely encountered a situation where your functions did not run in the order that you expected. You try rearranging your code. You even got desparate and added a setTimeout with a delay of zero milliseconds. Still didn't work.
Watch this to find out why.
code from video: https://gist.github.com/prof3ssorSt3v...