Skip to content

Commit f8aec45

Browse files
authored
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 parent cf2a2d7 commit f8aec45

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ 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`.
23+
Hint:
24+
1. passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
25+
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.
2426

2527
[demo]

0 commit comments

Comments
 (0)