Hi everyone, I’m having a go at the Random Quote Machine challenge and I would like some help.
Here is the code I am using to generate a random quote from an array:
var quotesArray = ["one", "two", "three", "four", "five", "six", "seven"]; var randomNumber = Math.floor(Math.random() * quotesArray.length); var randomQuote = quotesArray[randomNumber]; console.log(randomQuote);
The above code works as I want it to. My problem is that I don’t know how to use jQuery to insert my randomQuote variable in my html. I would appreciate any help with this, I’m currently trying to relearn jQuery as I clearly don’t have a great grasp on it