...
Web-Technologies
October 9, 2023
GATE 2023
October 9, 2023
Web-Technologies
October 9, 2023
GATE 2023
October 9, 2023

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

A
pass
B
fail
C
80
D
Error at line 6
Correct Answer: A
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!