function () { const RollTheDice =Math.floor(Math.random() * 6 + 1); let result = RollTheDice === 6 ? 'yes' : 'No'; return result; } console.log(return6orNo()); /** * ී௨ͷifจύλʔϯ */ const return6orNo = function () { const RollTheDice =Math.floor(Math.random() * 6 + 1); if (RollTheDice === 6) { return 'yes'; } else { return 'No'; } } console.log(return6orNo());