
Apu
March 05, 2023 ›
#HowTo
›
#Javascript
❌
How do you write Hello World in an alert box in JavaScript?
[A] alert = "Hello World"
[B] alertBox("Hello World")
[C] alert("Hello World")
[D] window.alert("Hello World")
The correct answer is C) alert("Hello World").
<script> alert("Hello World") </script>
This code will display a pop-up window with the message "Hello World". It is a useful way to notify the user of important information, such as an error message or a warning.
save
listen
AI Answer
How do you write Hello World in an alert box in JavaScript?
0
[A] alert = "Hello World" [B] alertBox("Hello World") [C] alert(&q…
asked
Apu
0 answers