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");

Related questions

0 votes
asked Oct 8, 2022 in JavaScript by rajeshsharma
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...