Whenever you're ready, walk me through how you'd approach this.
Do you know about the JavaScript event loop?