---
title: "Discussion on \"Learn JavaScript concepts by building a random quote generator\" | Hashnode"
description: "Discussion on \"Learn JavaScript concepts by building a random quote generator\". Learning JavaScript is fun. But What's the point if you are not building stuff with it.\nSo in this article, we will learn javascript basic concepts and create a random quote generator of our own.\nI assume you have a basic knowledge of HTML and CSS  a..."
url: "https://hashnode.com/posts/learn-javascript-concepts-by-building-a-random-quote-generator/5e7b076bf352f9d97afe5392"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Learn JavaScript concepts by building a random quote generator](https://blog.rutik.dev/learn-javascript-concepts-by-building-a-random-quote-generator?utm_source=hashnode&utm_medium=feed)

Learning JavaScript is fun. But What's the point if you are not building stuff with it. So in this article, we will learn javascript basic concepts and create a random quote generator of our own. I assume you have a basic knowledge of HTML and CSS a...

Mar 25, 2020 · 8 min read · blog.rutik.dev  
Updated Jul 22, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#html](https://hashnode.com/tag/html)
-   [#css](https://hashnode.com/tag/css)
-   [#es6](https://hashnode.com/tag/es6)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

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

@rutikwankhade · India

  
[View profile](https://hashnode.com/@rutikwankhade)

## Responses 1

Markdown supported · ⌘↵ to post

[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.
