I'm trying to create a score board for a rudimentary game and need a way to pass the players data from the game page to leaderboard page and I cant figure out how to do it in a way were its formatted right.
This is an example of the array im passing it in to
let tData=[{name:'dave', score: 9, time:12.02},{name:'steve', score:4, time:10.07}];
to be put in to a table like this
for(let contents of tData){dInt +=`<tr><td>${contents.name}</td><td>${contents.score}</td><td>${contents.time}</td></tr>`;}
thanks for any help