Skip to content

Commit a5e649d

Browse files
authored
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').
1 parent 9365275 commit a5e649d

File tree

1 file changed

+2
-0
lines changed
  • 1-js/02-first-steps/10-ifelse/4-check-login

1 file changed

+2
-0
lines changed

1-js/02-first-steps/10-ifelse/4-check-login/task.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ The schema:
2020

2121
Please use nested `if` blocks. Mind the overall readability of the code.
2222

23+
Hint: passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
24+
2325
[demo]

0 commit comments

Comments
 (0)