let index=Math.floor(Math.random()*quotes.length;
quotes[index];
Here you have a ) forgotten. Otherwise super post. Thanks for that!
Maybe not for beginners, but a useful library is Lodash. There is shuffle to sort an array too randomly. That way you can save the math() story.
But to bring JavaScript closer, your post is great!
let index=Math.floor(Math.random()*quotes.length; <!--This will give a random quote--> quotes[index];Here you have a
)forgotten. Otherwise super post. Thanks for that!Maybe not for beginners, but a useful library is Lodash. There is shuffle to sort an array too randomly. That way you can save the math() story.
But to bring JavaScript closer, your post is great!