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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Tsipporah Christopher
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Tsipporah Christopher
    Full Stack JavaScript Techdegree Graduate 15,593 Points

    What's the difference between using an 'if' and an 'else if' statement when setting the conditions for the poison?

    Posted July 2, 2022 12:49am by Tsipporah Christopher
    .a{fill-rule:evenodd;}techdegree seal-36
    Tsipporah Christopher
    Full Stack JavaScript Techdegree Graduate 15,593 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Emmanuel Nkiriyumwami
    Emmanuel Nkiriyumwami
    1,314 Points

    Not be able to move the payer up with the directional keyboard button, the player can only move forward and backward.

    Posted December 24, 2019 4:22pm by Emmanuel Nkiriyumwami
    Emmanuel Nkiriyumwami
    1,314 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Federico Lemaire
    Federico Lemaire
    8,423 Points

    Is this code okey?

    Posted September 18, 2019 5:17pm by Federico Lemaire
    Federico Lemaire
    8,423 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Andrew Morgan
    Andrew Morgan
    1,080 Points

    Game freezing before I've made any edits.

    Posted August 8, 2019 12:19pm by Andrew Morgan
    Andrew Morgan
    1,080 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    0 Answers

  • Samuel Duarte
    Samuel Duarte
    2,931 Points

    over 100

    Posted July 17, 2019 7:18pm by Samuel Duarte
    Samuel Duarte
    2,931 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Ismail Malik
    Ismail Malik
    10,131 Points

    why the player stark when he touches a coin or a star or a poison?

    Posted May 19, 2019 9:11am by Ismail Malik
    Ismail Malik
    10,131 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • josh chappell
    josh chappell
    220 Points

    game wont launch

    Posted February 5, 2019 10:26pm by josh chappell
    josh chappell
    220 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Ruben Lindskog
    Ruben Lindskog
    1,008 Points

    Hey, all I get when i launch the game is a black screen. Been going through the code but brackets seem to be in order.

    Posted January 29, 2019 5:50pm by Ruben Lindskog
    Ruben Lindskog
    1,008 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Ismael Ramirez
    Ismael Ramirez
    3,627 Points

    should I be able to move my character if so how?

    Posted December 7, 2018 5:45am by Ismael Ramirez
    Ismael Ramirez
    3,627 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Shahe Alam
    Shahe Alam
    1,500 Points

    I can not hear the voice in this video

    Posted November 19, 2018 2:17am by Shahe Alam
    Shahe Alam
    1,500 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Brandon Nault
    Brandon Nault
    102 Points

    I typed in everything as the video said and all I see is a black screen.

    Posted July 1, 2018 7:59pm by Brandon Nault
    Brandon Nault
    102 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    4 Answers

  • Raymond Leong
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Raymond Leong
    Full Stack JavaScript Techdegree Student 211 Points

    I keyed in everything as per the video instructions but everytime I collect the poison, +10 and +20 for coins

    Posted June 14, 2018 8:55am by Raymond Leong
    .a{fill-rule:evenodd;}techdegree
    Raymond Leong
    Full Stack JavaScript Techdegree Student 211 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Richard Rivera
    Richard Rivera
    729 Points

    I added internet information services, and i still can preview coin collector. The screen loads black.

    Posted May 26, 2018 8:53pm by Richard Rivera
    Richard Rivera
    729 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Manuel Cano
    Manuel Cano
    1,058 Points

    key property part of item

    Posted May 25, 2018 12:24am by Manuel Cano
    Manuel Cano
    1,058 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Nour El-din El-helw
    Nour El-din El-helw
    8,241 Points

    Workspaces keeps crashing

    Posted April 8, 2018 1:11pm by Nour El-din El-helw
    Nour El-din El-helw
    8,241 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Uche Onuekwusi
    Uche Onuekwusi
    18,072 Points

    How come the function item handler and badge handler was not called but yet the program still works ?

    Posted February 12, 2018 12:13pm by Uche Onuekwusi
    Uche Onuekwusi
    18,072 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • sulaiman abouabdah
    sulaiman abouabdah
    5,314 Points

    The difference between =, ==, === in JavaScript?

    Posted November 16, 2017 9:49am by sulaiman abouabdah
    sulaiman abouabdah
    5,314 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    1 Answer

  • Thomas Mai
    Thomas Mai
    385 Points

    Why wont this else if code work to add "poison" and "star"? It seems the same on the video, but it isn't running.

    Posted October 27, 2017 5:36am by Thomas Mai
    Thomas Mai
    385 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    4 Answers

  • Baishali Chetia
    Baishali Chetia
    1,149 Points

    Does it work if we use only "if" every time, instead of "else if" ?

    Posted October 13, 2017 5:12am by Baishali Chetia
    Baishali Chetia
    1,149 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    3 Answers

  • Unsubscribed User
    Unsubscribed User
    388 Points

    How come we're using "else if" for the other conditions as opposed to just creating a new "if" statement?

    Posted October 12, 2017 12:44pm by Unsubscribed User
    Unsubscribed User
    388 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • js81
    js81
    921 Points

    coin collector game keeps freezing

    Posted August 26, 2017 7:39pm by js81
    js81
    921 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    2 Answers

  • Christopher Stuart
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Stuart
    Full Stack JavaScript Techdegree Graduate 27,771 Points

    How To Download Files?

    Posted August 21, 2017 4:05pm by Christopher Stuart
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Stuart
    Full Stack JavaScript Techdegree Graduate 27,771 Points
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements

    3 Answers

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.