Vanilla JS Game Loop

function print_hello() {
  console.log("Hello!");
  // Continue playing the game - aka Recursive trigger motherfucker
  setTimeout(print_hello,500)
}

// Trigger aka Start Game
setTimeout(print_hello, 500);
Vivi