It's been 2 hours and I still can't figure this out
I need help with reading my Json Data in my JavaScript File, saving it to a variable, and then printing it out.
I've tried multiple solutions but nothing seems to work (I'm new to JS). Can someone please assist:
This is what my Json File looks like:
var Quotes = {
"allQuotes": [{
"person": "- Martin Luther King Jr.",
"quote": "In the End, we will remember not the words of our enemies, but the silence of our friends."
}, {
"person": " Uknown",
"quote": "I am big! It is the pictures that got small."
}, {
"person": "- Apocalypse Now",
"quote": " love the smell of napalm in the morning."
}, {
"person": " - Gone With the Wind",
"quote": "Frankly, my dear, I do not give a damn."
}, {
"person": "- - Knute Rockne All American",
"quote": " Tell em to go out there with all they got and win just one for the Gipper."
}, {
"person": "- Walt Disney",
"quote": " It is kind of fun to do the impossible."
}]
}
I'm using CodePen, here is the link: http://codepen.io/pat_the_hat_1992/pen/qqWmYL
//Please take a look at my code and make any necessary edits