Page 1

@Javascript_easy    Faire le point    here the following code    if ( true )  {  alert ( “ the condition was true “ );  }    Whats is the condition ? a) true b) alert (“the condition was true”); Whats is the value of the condition ? a) true b) false What happened when the condition is true ? a) it will execute to code between the curly braces b) nothing What is the code between the curly braces ? a) alert (“ the condition was true”) ; b) undefined


Exercice here the following code if ( false && false || ( true || false ) )  {  alert (“ it’s true “);  }    if ( true && false )    {  alert (“it’s not true”);  }    What’s the result of false && false || (true || false ) ? a) true b) false Does alert(“it’s true”) will be execute ? a) yes b) no What’s the result of true && false ? a) false b) true What will happen ? a) the instruction alert(“it’s not true”) will be executed b) nothing

   


If statement  
Advertisement
Read more
Read more
Similar to
Popular now
Just for you