Skip to content

Commit 308a046

Browse files
authored
Merge pull request #98 from alxhghs/patch-3
Changed 'waits the user' to 'waits for the user'
2 parents 3407815 + 64e6233 commit 308a046

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/09-alert-prompt-confirm

1 file changed

+1
-1
lines changed

1-js/02-first-steps/09-alert-prompt-confirm/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ We covered 3 browser-specific functions to interact with the visitor:
9999
: shows a message asking the user to input text. It returns the text or, if CANCEL or `key:Esc` is clicked, all browsers except Safari return `null`.
100100
101101
`confirm`
102-
: shows a message and waits the user to press "OK" or "CANCEL". It returns `true` for OK and `false` for CANCEL/`key:Esc`.
102+
: shows a message and waits for the user to press "OK" or "CANCEL". It returns `true` for OK and `false` for CANCEL/`key:Esc`.
103103
104104
All these methods are modal: they pause the script execution and don't allow the visitor to interact with the rest of the page until the message has been dismissed.
105105

0 commit comments

Comments
 (0)