Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics (2014) Introduction to jQuery Include jQuery in a Project

I think that the tests should provide hints and answers if you get stuck.

How do you add the CDN?

<!DOCTYPE html>
    <title>Take Evasive Action</title>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <p class="warning">
      <span>It's A Trap!</span>
    <div class="image">
        <img src="img/ackbar.gif">

    <script src="js/app.js" type="text/javascript" charset="utf-8"></script>
  <script type = "text/javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>


2 Answers

Steven Parker
Steven Parker
229,968 Points

You have the right idea.

But the challenge specifically asked for the jQuery hosted at code.jquery.com. Otherwise, I'd expect the one hosted at googleapis would work.

Also be sure to load jQuery before the local app.js.

My point is not that I got the question wrong. My point is that when you are stuck and don't know what you are doing wrong, it would be helpful if the site included a hint or access to the correct answer, so that you can immediately see what you got wrong, and move forward. In any case, they let me know that you can scroll forward on the icons above the test.

Steven Parker
Steven Parker
229,968 Points

Sometimes the "Bummer" message does include a useful hint. But I agree it would be much nicer if it did that in all cases.