Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generate a random number between 1 and 15
- const randomNumber = Math.floor(Math.random() * 15) + 1;
- // Check if the random number is above 6
- const result = randomNumber > 6 ? 'BIG' : 'SMOL';
- // Print the result
- return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement