From a5e649d966f38f9225f38e1f921f79802a1bcd18 Mon Sep 17 00:00:00 2001 From: snakecase <4579891+snakecase@users.noreply.github.com> Date: Sun, 11 Mar 2018 11:00:24 +0500 Subject: [PATCH] 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-js/02-first-steps/10-ifelse/4-check-login/task.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/1-js/02-first-steps/10-ifelse/4-check-login/task.md b/1-js/02-first-steps/10-ifelse/4-check-login/task.md index 4b371a1d..1d12cb09 100644 --- a/1-js/02-first-steps/10-ifelse/4-check-login/task.md +++ b/1-js/02-first-steps/10-ifelse/4-check-login/task.md @@ -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]