1.

Observe the code segment given below and answer the questions that follow:<SCRIPT LANGUAGE= "javascript">var A,B,C;A = (10*3)%(4/2);B = 40%3;if(!(B >= A))C = 5;elseC = 10;</SCRIPT>(a) Name any one relational operator and one logical operator used in the above code segment.(b) Rewrite the statement : if(!(B >= A))without using the ! operator.

Answer»

(a) The relational operator is >= and the logical operator is !

(b) if(B<=A)



Discussion

No Comment Found

Related InterviewSolutions