JavaScript is not displaying with time delay but

The point is, it’s fine to use alerts if you don’t mind subjecting yourself to them. But for others they could spur them to disable JavaScript for the page

IMHO it is much better to use console.log() instead.

3 Likes