JavaScript HTML CSS Roll Dice Game étape par étape

const throwdice = () => ~~(Math.random() * 6) + 1;

// Examples
throwdice();  //2
Batman