From acf0b2f0eadc0d8fd352759ea01d3be5849c8968 Mon Sep 17 00:00:00 2001 From: Ian Witham Date: Sun, 9 Jul 2017 12:04:46 +1200 Subject: [PATCH] Fixed unclear syntax and gendered language Cleaned up some bad grammar in the summary. Replaced occurrences of "he" with gender neutral language. --- 1-js/02-first-steps/09-alert-prompt-confirm/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/02-first-steps/09-alert-prompt-confirm/article.md b/1-js/02-first-steps/09-alert-prompt-confirm/article.md index 807326ab..37f25fdc 100644 --- a/1-js/02-first-steps/09-alert-prompt-confirm/article.md +++ b/1-js/02-first-steps/09-alert-prompt-confirm/article.md @@ -22,7 +22,7 @@ For example: alert("Hello"); ``` -The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until he deals with the window. In this case -- until he presses "OK". +The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until they have dealt with the window. In this case -- until they press "OK". ## prompt @@ -40,7 +40,7 @@ It shows a modal window with a text message, an input field for the visitor and `default` : An optional second parameter, the initial value for the input field. -The visitor may type something in the prompt input field and press OK. Or he can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key. +The visitor may type something in the prompt input field and press OK. Or they can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key. The call to `prompt` returns the text from the field or `null` if the input was canceled. @@ -101,7 +101,7 @@ We covered 3 browser-specific functions to interact with the visitor: `confirm` : shows a message and waits the user to press "OK" or "CANCEL". It returns `true` for OK and `false` for CANCEL/`key:Esc`. -All these methods are modal: they pause the script execution and don't let the visitor to interact with the rest of the page until he dismisses them. +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. There are two limitations shared by all the methods above: