Add a hint for empty input and pressing ESC during prompts

Added this hint because it's not obvious for newcomers and because the task requires to check prompt for two different values to give alert('Canceled').
This commit is contained in:
snakecase 2018-03-11 11:00:24 +05:00 committed by GitHub
parent 9365275467
commit a5e649d966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,4 +20,6 @@ The schema:
Please use nested `if` blocks. Mind the overall readability of the code.
Hint: passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
[demo]