So I'm currently building a random quote generator and whenever I try to append values from my object, it just returns:
[object Object]
Here's my code:
$("#quoteBubble").append("<p>" + quotes[Math.floor(Math.random() * quotes.length)] + "</p>");
Also, here's the general layout of my object/array:
var quotes = [{
"quote": "eeyyy sik beets yo.",
"author": "Jamen Marz"
},
If anyone here could help me solve my issue, that would be greatly appreciated :D
Edit: Here's a link to my CodePen - http://codepen.io/Jelani/pen/ojYZaa?editors=101