Okay, so I’ve been hyped for Wuthering Waves, and like everyone else, I’m counting down the days. I decided to make my own little countdown timer, because why not? It’s a fun little project, and it keeps the excitement going!

First, I needed to figure out the release date. Pretty easy, just a quick search, and boom – May 22nd, 2024. Got that locked in.
Next, I thought, “Okay, how do I actually make this thing?” I’m no coding expert, but I know a bit of HTML and JavaScript. That seemed like the easiest way to go.
I started by creating a basic HTML file. Nothing fancy, just a simple structure:
- <!DOCTYPE html>
- <html>
- <head>
- <title>Wuthering Waves Countdown</title>
- </head>
- <body>
- <div id=”countdown”></div>
- </body>
- </html>
See? Super basic. The important part is that <div id=”countdown”></div>. That’s where the countdown magic will happen.
Then came the JavaScript part. This is where I had to do a little thinking. I needed to:

- Get the current date and time.
- Get the release date and time.
- Calculate the difference between the two.
- Display that difference in days, hours, minutes, and seconds.
- Update the display every second.
I used the Date object in JavaScript to get the dates. Then, it was just a matter of subtracting the release date from the current date to get the difference in milliseconds. A little bit of math (dividing by 1000, 60, 60, 24) turned that into seconds, minutes, hours, and days.
To update the timer every second, I used the setInterval() function. This function calls another function repeatedly at a set interval – in this case, every 1000 milliseconds (1 second).
The display part was pretty straightforward. I just used some basic string manipulation to format the output, and used the countdown to put it in the HTML.
I slapped together a little bit of JavaScript to display the countdown.
And… it worked! I had a working countdown timer! It wasn’t the prettiest thing in the world, but it did the job. I could see exactly how long I had to wait for Wuthering Waves. Seeing those numbers tick down made the wait feel a little more real, and a little more exciting.

The whole thing was pretty rough around the edges, but hey, it was my rough-around-the-edges countdown timer. And it got me even more pumped for the game!