Random Quote Generator JSON Help

I cannot figure out how to assign JSON text from this server to a variable so that I can then tweet it. It’s working fine with the quote on the page itself, as I know how to edit an element’s HTML, but I can’t figure out how to assign that same data to a variable.

I just realized that this doesn’t matter as it’s been removed from the curriculum. Perfect.