Valid dice rolls: You rolled a 1 You rolled a 2 You rolled a 3 You rolled a 4 You rolled a 5 You rolled a 6 Invalid dice rolls (would be TypeScript compile-time errors): Invalid dice roll: 0. Must be an integer from 1 to 6. Invalid dice roll: 7. Must be an integer from 1 to 6. Invalid dice roll: 2.5. Must be an integer from 1 to 6. Random dice roll: You rolled a 3 In TypeScript, these would be compile-time errors: diceRoll = 0; // Error: Type '0' is not assignable to type... diceRoll = 7; // Error: Type '7' is not assignable to type... diceRoll = 2.5; // Error: Type '2.5' is not assignable to type...