This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Object to hold quotes and authors | |
var myObj = null; | |
// Indexes for current quote and new quote so same quote isn't repeated back to back | |
var randQuote = 0; | |
var newQuote = 0; | |
$(document).ready(function() { | |
// Get a quote | |
getQuote(); | |
// On click listener on element with id of getQuoteBtn to get a new quote |