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

Devjyoti Ghosh
Devjyoti Ghosh
2,422 Points

Can someone check my code?

https://teamtreehouse.com/workspaces/28805742

I am not using nested if and else if as shown by the professor but shouldn't my code display the same results? Is what I am doing considered wrong practice?

3 Answers

Rhys Kearns
Rhys Kearns
4,976 Points

You can't link a workspace - you must link the code.

nico dev
nico dev
20,364 Points

Hi Devjyoti Ghosh ,

A couple of suggestions:

  1. You may like for people to be able to help you by finding your code, and that's possible if you either post your code or even better if you make a snapshot of your Workspace. For doing the latter, you can watch this brief video that explains how to do that. If, however, you're working locally (not using Workspaces), you may like to post your code in a readable way, for which you can watch this short video that explains how to do it.

  2. Another important factor in the community being able to help you is to know which video, course or challenge you're talking about. For achieving that, you just need to post your question from below the video player/challenge/quiz, using the green "Get Help" button that appears there.

Hope these tips help you get a helpful answer.

Devjyoti Ghosh
Devjyoti Ghosh
2,422 Points

I realized that you had to take a snapshot later. It is my bad if anyone can delete the post please do that.