| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10⚡ | 11⚡ | 12⚡ | 13⚡ | 14⚡ | 15 | 16 | 17 | 18⚡ | 19 | 20 |
User Story: As a user, I want to discover random Mad Libs stories from my collection so that I can be surprised by stories I’ve forgotten about.
Create a route to display a random story from the stored stories.
/random routeMath.random() to select a random storyNeed help with random selection? Check out these snippets:
Math.floor(Math.random() * stories.length)stories[randomIndex]let stories = ['Story 1', 'Story 2', 'Story 3']; for testing/random route