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:
parent
9365275467
commit
a5e649d966
1 changed files with 2 additions and 0 deletions
|
@ -20,4 +20,6 @@ The schema:
|
||||||
|
|
||||||
Please use nested `if` blocks. Mind the overall readability of the code.
|
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]
|
[demo]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue