Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • David Jensen
    David Jensen
    6,339 Points

    Is there any easy way to find the correct answer when I can't figure it out (e.g. answer key or something like that)?

    Posted March 2, 2017 8:21am by David Jensen
    David Jensen
    6,339 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    1 Answer

  • KORAXE IUHMAGEON
    PLUS
    KORAXE IUHMAGEON
    Courses Plus Student 8,486 Points

    I have no idea what I'm doing

    Posted June 29, 2016 9:40am by KORAXE IUHMAGEON
    KORAXE IUHMAGEON
    Courses Plus Student 8,486 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Robbie Thomas
    Robbie Thomas
    31,093 Points

    Adding Events

    Posted June 27, 2016 12:27am by Robbie Thomas
    Robbie Thomas
    31,093 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    3 Answers

  • Thomas Katalenas
    Thomas Katalenas
    11,033 Points

    what am i doing wrong.

    Posted June 17, 2016 8:24pm by Thomas Katalenas
    Thomas Katalenas
    11,033 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Brad Richardson
    PLUS
    Brad Richardson
    Courses Plus Student 1,843 Points

    What am i doing wrong here?

    Posted December 18, 2015 5:12pm by Brad Richardson
    Brad Richardson
    Courses Plus Student 1,843 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    1 Answer

  • fabio sarcon
    fabio sarcon
    4,410 Points

    Not Work

    Posted October 22, 2015 7:09am by fabio sarcon
    fabio sarcon
    4,410 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    3 Answers

  • Iulia Mihet
    Iulia Mihet
    5,770 Points

    I wrote 3 different valid solutions in the coding challenge, and neither is accepted by the program. What to do?

    Posted October 20, 2015 8:06am by Iulia Mihet
    Iulia Mihet
    5,770 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Justin Thomas
    Justin Thomas
    10,461 Points

    Please help I do not get this question!!

    Posted September 30, 2015 11:36pm by Justin Thomas
    Justin Thomas
    10,461 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    4 Answers

  • MUZ140569 Wiseman Vhenge
    MUZ140569 Wiseman Vhenge
    5,401 Points

    assign event handler

    Posted August 21, 2015 5:15pm by MUZ140569 Wiseman Vhenge
    MUZ140569 Wiseman Vhenge
    5,401 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Andre Oosterman
    Andre Oosterman
    12,861 Points

    My answer to this question is: sayButton.click(greeting) { }); Not sure why my code does not work. Anybody?

    Posted August 17, 2015 3:21pm by Andre Oosterman
    Andre Oosterman
    12,861 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Donald Richmond
    Donald Richmond
    13,807 Points

    'assign the greeting event handler to the click event on the sayButton.' What am I supposed to enter here??

    Posted July 5, 2015 9:52pm by Donald Richmond
    Donald Richmond
    13,807 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Jerry Schrader
    Jerry Schrader
    4,396 Points

    This is not working sayButton.onClick = greeting;

    Posted March 6, 2015 2:09pm by Jerry Schrader
    Jerry Schrader
    4,396 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    3 Answers

  • mickey Odunikan
    mickey Odunikan
    4,983 Points

    SOOOOOOO confused

    Posted January 17, 2015 10:13pm by mickey Odunikan
    mickey Odunikan
    4,983 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    1 Answer

  • Elizabeth Hammock
    Elizabeth Hammock
    6,674 Points

    After line 4 in the app.js file, assign the greeting event handler to the click event on the sayButton.

    Posted January 9, 2015 7:29pm by Elizabeth Hammock
    Elizabeth Hammock
    6,674 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    3 Answers

  • Christian Kristoffersen
    Christian Kristoffersen
    32,531 Points

    Can't get through the challenge?!

    Posted January 3, 2015 9:44pm by Christian Kristoffersen
    Christian Kristoffersen
    32,531 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    2 Answers

  • Adama Sy
    Adama Sy
    7,076 Points

    Javascript hard to understand

    Posted September 12, 2014 7:02pm by Adama Sy
    Adama Sy
    7,076 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Adding Events

    5 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord