Question:The following Javascript code fragments (A and B) is identical to each other? A
a=2
b=3
 a>b?alert("It is true"):alert("Not true");
B
a=2
b=3
if(a>b)alert("It is true")else alert("Not true")
 

A Both code in A and B are correct syntax for the identical output 

B Code in A and B is not identical for output 

C Code A is correct syntax but Code B is incorrect syntax 

D Both is incorrect syntax 

+ Answer
+ Report
Total Preview: 1025

Copyright © 2024. Powered by Intellect Software Ltd