Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Treehouse Club - MASH MASH - JavaScript Important Stuff - Part 3

Please fill in the correct answer in each blank provided below. Fill in the blank(s) below: || means .

Please fill in the correct answer in each blank provided below.

Fill in the blank(s) below:
|| means .

1 Answer

hello katelyn well when you want to run something if one condition is true or it will run even if one of them is false

// i believe this is call  ( or )
if(true || false) {
   // here the statement will run as long as one of the conditions is true
}

// this one ( and )
if(true && false) {
  // here the statement will not run. both conditions have to be true 
}

hope this helps