Javascript – Why is do / while looping infinitely after condition was expected to have been met?
Goal: Delay execution of function by at least 1 second. The problem: Instead of a minimum 1 second delay the do / while loops forever. The steps: After 1 second timer is set to timerLength. If the fetch request takes…