πŸ“Š JavaScript
Q. How do you write “Hello World” in an alert box?
  • (A) msg("Hello World");
  • (B) alert("Hello World");
  • (C) msgBox("Hello World");
  • (D) alertBox("Hello World");
πŸ’¬ Discuss
βœ… Correct Answer: (B) alert("Hello World");

Explanation: alert() is a build-in function in javascript which is used to give message to the visitor.

<script>
alert("Welcome to MCQ Buddy");
</script>
This code will give user a message Welcome to MCQ Buddy.

Explanation by: Yogesh
alert() is a build-in function in javascript which is used to give message to the visitor.

<script>
alert("Welcome to MCQ Buddy");
</script>
This code will give user a message Welcome to MCQ Buddy.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
209
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
90%
Success Rate