I wanna create some loading dots, like this:
At 0000 miliseconds the span content is: .
.
At 0100 miliseconds the span content is: ..
..
let span = document.querySelector('span'); i = 0; setInterval(() => { span.innerText = Array(i = i > 2 ? 0 : i + 1).fill('.').join(''); }, 500)