javascript – Returns the values ​​in a div

I created a 2-player dice game. The idea is that each player rolls the dice in turn. It's a 6 faces each, 2 dice per player.
After each roll, the numbers must be added.

var myScore = document.getElementById ("score");
var die3 = document.getElementById ("die3");
var die4 = document.getElementById ("die4");

var d3 = Math.floor (Math.random () * 5) +1;
var d4 = Math.floor (Math.random () * 5) +1;

var Total = d3 + d4;

die3.innerHTML = d3;
die4.innerHTML = d4;

score var = 0;

let sum = Total.reduce ((Total, val) => {
return Total + val;
}, 0);


myScore.innerHTML + = "" + sum + ",";

output = 5,2,10,13

I'm trying to extract numbers, and then add them to the help of javascript.

Until now, I have the numbers of the div tag which I need to totalize for example 30

thank you so much