...
Web-Technologies
October 9, 2023
Operating-Systems
October 9, 2023
Web-Technologies
October 9, 2023
Operating-Systems
October 9, 2023

Java-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?

A
pass
B
fail
C
80
D
Error at line 6
Correct Answer: A

Leave a Reply

Your email address will not be published. Required fields are marked *