text: var quotes = [
      {
          quote: "You have to write the book that wants to be written. And if the book will be too difficult for grown-ups, then you write it for children.",
          author: "Madeleine L'Engle"
      },
      {
          quote: "If you don't have time to read, you don't have the time (or the tools) to write. Simple as that.",
          author: "Stephen King"
      },
      {
          quote: "We write to taste life twice, in the moment and in retrospect.",
          author: "Anaïs Nin"
      },
      {
          quote: "Substitute 'damn' every time you're inclined to write 'very;' your editor will delete it and the writing will be just as it should be.",
          author: "Mark Twain"
      },
      {
          quote: "If there's a book that you want to read, but it hasn't been written yet, then you must write it.",
          author: "Toni Morrison"
      },
      {
          quote: "One day I will find the right words, and they will be simple.",
          author: "-Jack Kerouac, The Dharma Bums"
      },
      {
          quote: "Either write something worth reading or do something worth writing.",
          author: "Benjamin Franklin"
      },
      {
          quote: "You never have to change anything you got up in the middle of the night to write.",
          author: "Saul Bellow"
      },
      {
          quote: "No tears in the writer, no tears in the reader. No surprise in the writer, no surprise in the reader.",
          author: "Robert Frost"
      },
      {
          quote: "Read, read, read. Read everything -- trash, classics, good and bad, and see how they do it. Just like a carpenter who works as an apprentice and studies the master. Read! You'll absorb it. Then write. If it's good, you'll find out. If it's not, throw it out of the window.",
          author: "William Faulkner"
      },
      {
          quote: "You must stay drunk on writing so reality cannot destroy you.",
          author: "Ray Bradbury, Zen in the Art of Writing"
      },
      {
          quote: "Words can be like X-rays if you use them properly -- they'll go through anything. You read and you're pierced.",
          author: "Aldous Huxley, Brave New World"
      },
      {
          quote: "How vain it is to sit down to write when you have not stood up to live.",
          author: "Henry David Thoreau"
      },
      {
          quote: "I can shake off everything as I write; my sorrows disappear, my courage is reborn.",
          author: "Anne Frank"
      },
      {
          quote: "A writer is someone for whom writing is more difficult than it is for other people.",
          author: "Thomas Mann, Essays of Three Decades"
      },
      {
          quote: "Let me live, love, and say it well in good sentences.",
          author: "Sylvia Plath, The Unabridged Journals of Sylvia Plath"
      },
      {
          quote: "Here is a lesson in creative writing. First rule: Do not use semicolons. They are transvestite hermaphrodites representing absolutely nothing. All they do is show you've been to college.",
          author: "Kurt Vonnegut Jr., A Man Without a Country"
      },
      {
          quote: "Don't bend; don't water it down; don't try to make it logical; don't edit your own soul according to the fashion. Rather, follow your most intense obsessions mercilessly.",
          author: "Franz Kafka"
      },
      {
          quote: "I kept always two books in my pocket, one to read, one to write in.",
          author: "Robert Louis Stevenson"
      },
      {
          quote: "You can make anything by writing.",
          author: "C.S. Lewis"
      },
      {
          quote: "A word after a word after a word is power.",
          author: "Margaret Atwood"
      },
      {
          quote: "Tears are words that need to be written.",
          author: "Paulo Coelho"
      },
      {
          quote: "You should write because you love the shape of stories and sentences and the creation of different words on a page. Writing comes from reading, and reading is the finest teacher of how to write.",
          author: "Annie Proulx"
      },
      {
          quote: "Writing is like sex. First you do it for love, then you do it for your friends, and then you do it for money.",
          author: "Virginia Woolf"
      },
      {
          quote: "To survive, you must tell stories.",
          author: "Umberto Eco, The Island of the Day Before"
      },
      {
          quote: "Always be a poet, even in prose.",
          author: "Charles Baudelaire"
      },
      {
          quote: "If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.",
          author: "Isaac Asimov"
      },
      {
          quote: "The purpose of a writer is to keep civilization from destroying itself.",
          author: "Albert Camus"
      }, {
          quote: "I write to discover what I know.",
          author: "Flannery O'Connor"
      },
      {
          quote: "Ideas are like rabbits. You get a couple and learn how to handle them, and pretty soon you have a dozen.",
          author: " John Steinbeck"
      },
      {
          quote: "A book is made from a tree. It is an assemblage of flat, flexible parts (still called 'leaves') imprinted with dark pigmented squiggles. One glance at it and you hear the voice of another person, perhaps someone dead for thousands of years. Across the millennia, the author is speaking, clearly and silently, inside your head, directly to you. Writing is perhaps the greatest of human inventions, binding together people, citizens of distant epochs, who never knew one another. Books break the shackles of time--proof that humans can work magic.",
          author: "Carl Sagan"
      },
      {
          quote: "Words do not express thoughts very well. They always become a little different immediately after they are expressed, a little distorted, a little foolish.",
          author: "Hermann Hesse"
      },
      {
          quote: "Writing books is the closest men ever come to childbearing.",
          author: "Norman Mailer"
      },
      {
          quote: "Find out the reason that commands you to write; see whether it has spread its roots into the very depth of your heart; confess to yourself you would have to die if you were forbidden to write.",
          author: "Rainer Maria Rilke"
      },
      {
          quote: "As a writer, you should not judge, you should understand.",
          author: "Ernest Hemingway"
      },
      {
          quote: "A good writer possesses not only his own spirit but also the spirit of his friends.",
          author: "Friedrich Nietzsche"
      },
      {
          quote: "The most valuable of all talents is that of never using two words when one will do.",
          author: "Thomas Jefferson"
      },
      {
          quote: "If it sounds like writing, I rewrite it. Or, if proper usage gets in the way, it may have to go. I can't allow what we learned in English composition to disrupt the sound and rhythm of the narrative.",
          author: " Elmore Leonard"
      },
      {
          quote: "Writers live twice.",
          author: "Natalie Goldberg"
      },
      {
          quote: "To produce a mighty book, you must choose a mighty theme.",
          author: "Herman Melville"
      },
      {
          quote: "Words are a lens to focus one's mind.",
          author: "Ayn Rand"
      },
      {
          quote: "I am irritated by my own writing. I am like a violinist whose ear is true, but whose fingers refuse to reproduce precisely the sound he hears within.",
          author: "Gustave Flaubert"
      },
      {
          quote: "Writing is its own reward.",
          author: "Henry Miller"
      },
      {
          quote: "A blank piece of paper is God's way of telling us how hard it is to be God.",
          author: "Sidney Sheldon"
      },
      {
          quote: "I went for years not finishing anything. Because, of course, when you finish something you can be judged.",
          author: "Erica Jong"
      },
      {
          quote: "I love deadlines. I like the whooshing sound they make as they fly by.",
          author: "Douglas Adams"
      },
      {
          quote: "Half my life is an act of revision.",
          author: "John Irving"
      },
      {
          quote: "Get it down. Take chances. It may be bad, but it's the only way you can do anything really good.",
          author: "William Faulkner"
      },
      {
          quote: "Almost anyone can be an author; the business is to collect money and fame from this state of being.",
          author: "A. A. Milne"
      },
      {
          quote: "When you make music or write or create, it's really your job to have mind-blowing, irresponsible, condomless sex with whatever idea it is you're writing about at the time. ",
          author: "Lady Gaga"
      }
  ]
  var quote = document.getElementsByClassName("quote")[0];
  var author = document.getElementsByClassName("author")[0];
  var randomNumber = Math.floor(Math.random() * quotes.length);
  quote.innerHTML = quotes[randomNumber].quote;
  author.innerHTML = quotes[randomNumber].author;
  const quoteGenerator = () => {
      var randomNumber = Math.floor(Math.random() * quotes.length);
      quote.innerHTML = quotes[randomNumber].quote;
      author.innerHTML = quotes[randomNumber].author;
  }
  