Issuu on Google+

@Javascript_easy    Faire le point    Training exercise With number and string , what is the third type of Javascript ? a) Boolean b) Trans 2 > 3 is : a) a condition b) an operation What is the type of 2 > 3 : a) false b) true What does alert ( 2 > 3 ) ;will display ? a) false b) true here the following code : var boolean1 = ( 0 == 1 ) && ( 1==1) ;  alert (boolean1);    What is the condition in this code ? a) (0 == 1 ) && ( 1 == 1) ; b) (0 == 1 )

What is the result of ( 0 == 1 ) ? a) false b) true


What is the result of ( 1 == 1 ) ? a) true b) false What is the result of false && true ? a) false b) true what is the value of boolean1 ? a) false b) true What will alert( boolean1) will display ? a) false b) true Here the following code ? var boolean1 =  7 ==  ‘7’ ;  var boolean2 = 7 === ‘7’ ;    What is the condition with boolean1 ? a) 7 == ‘7’ b) 7=== ‘7’ What is the type of 7 and ‘7’ ? a) 7 is type number and ‘7’ is a string b) same type both What is the result of 7 == ‘7’ ? a) true b) false


What is the result of 7 === ‘7’ ? a) false b) true Why it is false ? a) because === compares two things , the value and the type b) dunno


Condition boolean