Web-Technologies
October 9, 2023Operating-Systems
October 9, 2023Java-Script
Question 3 |
Consider the following script:
< html >
< head >< title > JavaScript < title >< / head >
< body >
< script language-“JavaScript” >
var a=80
var b=(==80 ? “pass” : “fail”):
document, write(b)
< / script >
< / body >
< / html >
What will be the output of the above script?
pass | |
fail | |
80 | |
Error at line 6 |
Correct Answer: A