Web-Technologies
October 9, 2023GATE 2023
October 9, 2023Web-Technologies
Question 22 |
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
Subscribe
Login
0 Comments