---
title: "Comment by Kevin Pliester on \"Learn JavaScript concepts by building a random quote generator\" | Hashnode"
description: "let index= Math .floor( Math .random()*quotes.length; &lt;!--This will give a random quote--&gt; quotes[index]; Here you have a ) forgotten. Otherwise super pos"
url: "https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392/comment/5e7b95eeb841244e20d163c2"
---

[Discussion](https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392)

Comment [Learn JavaScript concepts by building a random quote generator](https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392)

[Kevin Pliester](https://hashnode.com/@pixelbart)

[Mar 25, 2020](https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392/comment/5e7b95eeb841244e20d163c2)

```
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](https://lodash.com/). 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!

[Rutik Wankhade](https://hashnode.com/@rutikwankhade)

[Mar 26, 2020](https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392/comment/5e7b95eeb841244e20d163c2#reply-5e7c20cf5e62f24d20278b73)

Fixed it. Thanks for the feedback [Kevin Pliester](https://hashnode.com/@pixelbart). Yeah. The motive was to use only pure JavaScript.
