From f8aec45ab25e0e63b58ad15e9990d70c38d78910 Mon Sep 17 00:00:00 2001 From: Mau Di Bert Date: Fri, 11 Jan 2019 07:51:02 -0300 Subject: [PATCH] Update task.md Logical Operators are explained in the next chapter. I proposed the possibility of another hint for that here from your tutorial but maybe could be better to move the exercise one chapter. --- 1-js/02-first-steps/10-ifelse/4-check-login/task.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 1d12cb09..191defbe 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,6 +20,8 @@ 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`. +Hint: +1. passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`. +2. You should use || that we will see in detail on the next chapter. Here some info: in classical programming, the logical OR is meant to manipulate boolean values only. If any of its arguments are true, it returns true, otherwise it returns false. [demo]