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.
This commit is contained in:
parent
cf2a2d77b3
commit
f8aec45ab2
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@ 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`.
|
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]
|
[demo]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue