๐ JavaScript tip ๐
Don't measure elapsed times with Date. It only has millisecond precision and was not made to measure, e.g., execution times.
Better use the performance API. It has up to microsecond precision and was made exactly for such purposes! ๐๐ป