Learn how to randomly pull data from an array as I show you how I build an idea generator app from start to finish using JavaScript, HTML, and CSS. In this part of the tutorial, we focus on the problem of pulling two random bookmarks to create our idea generator. We'll cover how to generate a random number in JavaScript, how you can use this random number to get a random item from the bookmarks list, and more debugging strategies for when your data is null.
This is part 5 of an 8 part tutorial. Check out the playlist here: • Idea Generator Tutorial
Follow along by cloning or forking the main branch here: https://github.com/ProfessorKolodziej...
Chapters in this video:
[00:00] Introduction
[00:25] Review of the last video
[00:39] How to generate a random number in JavaScript
[01:44] Restart build tools
[03:12] Review the codebase and define the problem
[04:26] Write a function to generate a random number
[06:25] Debugging the compiling error by running npm run fix
[07:49] Debugging the "stored data is null" error
[09:41] Adjust the function to create two random numbers
[10:48] Debugging the errors with the function
[11:47] Test the randomizing function pulls two random bookmarks
[12:16] Conclusion
Image/Thumbnail Credits ❤️Photo by Alessandro Bianchi on Unsplash https://unsplash.com/@ale_s_bianchi?u...
Sur cette page du site, vous pouvez voir la vidéo en ligne Idea Generator Tutorial Part 5: Write a function to get two random bookmarks durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Professor K Explains 22 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 72 fois et il a aimé 3 téléspectateurs. Bon visionnage!