Tutorial
Prompt & Alert

Prompt and alert in JavaScript

🎉

Read This on Github

This article is available on Github. You can read it there and contribute to it.
Github Link
Any Issue ?

➡️ Prompt and Alert

Prompt and alert in JavaScript

⭐ What is Prompt and alert in JavaScript?

In JavaScript, prompt and alert are functions that display a message to the user. are commonly used to ask the user for input or to display a message to the user.

  • prompt is used to ask the user for input and returns the input as a string.
  • alert is used to display a message to the user.
let name = prompt("What is your name?");
alert("Hello " + name);