This commit is contained in:
Ilya Kantor 2017-04-21 09:34:49 +02:00
parent 7a51c05ded
commit 0576ea79d8
18 changed files with 375 additions and 109 deletions

View file

@ -13,7 +13,7 @@ function checkAge(age) {
if (age > 18) {
return true;
} else {
return confirm('Did parents allow you?');
return confirm('Do you have your parents permission to access this page?');
}
}
```
@ -24,4 +24,3 @@ Make two variants of `checkAge`:
1. Using a question mark operator `'?'`
2. Using OR `||`