MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getRandomQuote

Function getRandomQuote

RandomQuoteGenerator/js/script.js:167–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166//Function to randomly select a quote value and return a random quote object from the quotes array
167function getRandomQuote () {
168 var randomNumber = Math.floor(Math.random() * (quotes.length));
169 var randomQuote = quotes[randomNumber];
170 return randomQuote;
171}
172
173//Function to select random rgb color value
174function getRandomColor () {

Callers 1

printQuoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected