Goal: When the page loads you get 5 quotes taken from an array at random. The quotes should not be the same/overlap. I've been able to have one quote generate at random with the code below. The thing I cannot figure out is how to display multiple random quotes without having them repeat.
My problem is even when I display the results of math.random several times it is the same random quote --for example the page will load the random quote "#1" and display that quote 5 times instead of 5 random different quotes.
Current JS code:
var quotes = ['Quote 1', 'Quote 2', 'Quote 3', 'Quote 4', 'Quote 5', 'Quote 6', 'Quote 7', 'Quote 8', 'Quote 9', 'Quote 10'];
var quote = quotes[Math.floor(Math.random()*quotes.length)];
var result = document.querySelector("#quoteOne");
result.textContent = (quote);
<p id="quoteOne"></p>