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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • Introducing JavaScript
    • Finishing the Game
    • Control the Flow with Conditional Statements
    • Close
  • 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 on Jul 2, 2022 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 on Dec 24, 2019 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 on Sep 18, 2019 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 on Aug 8, 2019 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 on Jul 17, 2019 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 on May 19, 2019 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 on Feb 5, 2019 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 on Jan 29, 2019 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 on Dec 7, 2018 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 on Nov 19, 2018 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 on Jul 1, 2018 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 on Jun 14, 2018 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 on May 26, 2018 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 on May 25, 2018 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 on Apr 8, 2018 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 on Feb 12, 2018 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 on Nov 16, 2017 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 on Oct 27, 2017 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 on Oct 13, 2017 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 on Oct 12, 2017 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 on Aug 26, 2017 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 on Aug 21, 2017 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.