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

Katelyn Peters
Katelyn Peters
1,606 Points

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

anthony amaro
anthony amaro
8,166 Points

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