JavaScript HTML CSS Roll Dice Game Schritt für Schritt Spiel
const throwdice = () => ~~(Math.random() * 6) + 1;
// Examples
throwdice(); //2
Batman
const throwdice = () => ~~(Math.random() * 6) + 1;
// Examples
throwdice(); //2