prompt()は文字列を入力してもらうことができるメソッドです。 何か入力してください というメッセージのあとに テキストエリアに入力した値をalertで表示します。
Prompt dialog Box is used to have an input from the users or to get confirmation on any input. This dialog box is displayed using a method called prompt() which takes two parameters:- (i) A label ...