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 JavaScript Basics Making Decisions in Your Code with Conditional Statements The Conditional Challenge Solution

When making this script i did not use >= but || does it stil count or did i do it wrong?

it is in a if else statment

2 Answers

If you used a '3 or 4' approach to checking if the value of the score is either 3 or 4, then that is just as valid as doing the 'first check if the answer is 5, then check if the answer is equal to or above 3' approach.

Steven Parker
Steven Parker
229,708 Points

You'd need to show the actual code for a precise answer; but in general, the value comparison ">=" does a different job from the logical "or" operator ("||"), so normally one would not be able to replace one with the other without affecting program performance.