0 votes
in JavaScript by
Which one of the following is correct output for the following given JavaScript code:

string  X= "Good";  

string  Y="Evening";  

alert(X+Y);  

a) Good

b) Evening

c) GooodEvening

d) undefined

1 Answer

0 votes
by

Answer: C

Reason: The alert method is commonly used for Displaying the value(or message) passed as argument in the "dialogbox" in the web-browser. Here, the alert method concatenates both given strings and prints as a single string in the form of output.

...