Merge pull request #952 from pimonenkov/patch-2

replace "press" with "click"
This commit is contained in:
Ilya Kantor 2019-04-30 22:05:33 +02:00 committed by GitHub
commit aa67109dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ More in: <info:variables> and <info:types>.
We're using a browser as a working environment, so basic UI functions will be:
[`prompt(question, [default])`](mdn:api/Window/prompt)
: Ask a `question`, and return either what the visitor entered or `null` if they pressed "cancel".
: Ask a `question`, and return either what the visitor entered or `null` if they clicked "cancel".
[`confirm(question)`](mdn:api/Window/confirm)
: Ask a `question` and suggest to choose between Ok and Cancel. The choice is returned as `true/false`.