Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

prompt

import { prompt } from "https://cdn.jsdelivr.net/gh/u1ui/dialog.js@x/dialog.js";

Creates and shows a dialog with a prompt message.

@example
const name = await prompt('Enter your name:');
function prompt(text, initial);
§
prompt(text, initial)
[src]

§Parameters

§
text
[src]
  • The text to be displayed in the prompt dialog.
§
initial
[src]