0 votes
in JavaScript by
Which of the following is the correct syntax to display "Letsfindcourse" in an alert box using JavaScript?

a) alert-box("Letsfindcourse");

b) confirm("Letsfindcourse");

c) msgbox("Letsfindcourse");

d) alert("Letsfindcourse");

1 Answer

0 votes
by

Answer:-  D

Reason:  To display any text in the alert box, you need to write it as alert("Letsfindcourse");

...