Need help for my Random Quote Machine Project

Hi, everyone.

I just recently did the Random Quote Machine project.

I only have one issue, i keep on getting undefined in the twitter page.

Can anyone help on this?

U can view my code at https://codepen.io/ChaosSaveren29/pen/vZPYez.

Thanks.

Hi, SkyC,

I dont quite understand what you mean…

"Your quote is not in scope in the function where you do your window.open.

In this chunk of code:

    $.getJSON(url, function(data) {
      $(".quote").html('"' + data.quoteText + '"');
      $(".author").html("-" + data.quoteAuthor);
    });

You write the quote to the page. "

Thanks for the href portion.

Hi, SkyC,

I took your advice and it’s working as I wanted it to now.

Thank you very much for your prompt response and patience.