let num = (Math.floor(Math.random() * 6 + 1))
console.log(num)
if (num === 6)
console.log('Wow, you hit the jackpot with a rarity of 1/6!')
The above code snippet generates a random number between 1 and 6, then prints "that was a 1/6 chance" if the number is exactly 6. However, even though it currently functions correctly and displays the message as intended, I would like it to only show the message when the number is 6.