How To Correctly Execute A Loop Synchronously With Javascript

How To Correctly Execute A Loop Synchronously With Javascript