20.0k views
19 votes
Code for the alert box is

(a) alert("Some text");(b) tab.alert("sometext");(c) html.alert("sometext");(d) None of the above

Code for the alert box is (a) alert("Some text");(b) tab.alert("sometext-example-1
User Avigil
by
6.8k points

1 Answer

11 votes

Answer:

(a) alert("Some text");

Step-by-step explanation:

Required

Determine the code for alert box.

In JavaScript, the syntax is:

1. window.alert("sometext");

or

2. alert("sometext");

From the given options, option (a) shows syntax 2 while other options are inappropriate

User Zajonc
by
6.8k points