My player attendance project

This is a project I created that logs the attendance of 8 players on Minecraft. Based on the time of day some players will be online and at other times they will be offline. I even simulated an error that switches from online to offline every 10 seconds. To create this first I used a class to create all my objects. Secondly I used conditional statements to set the values of the objects based on the time of day. To finish this project I used a for loop to create the elements, store the object value in them, append the elements to unordered list, then append the unordered list to a div element on the page. I’m open to all suggestions to improve my code and I’ll provide a link to my code down below.