We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4a8408 + e817e10 commit 00d1051Copy full SHA for 00d1051
1-js/02-first-steps/14-function-basics/article.md
@@ -266,7 +266,7 @@ There may be many occurrences of `return` in a single function. For instance:
266
267
```js run
268
function checkAge(age) {
269
- if (age > 18) {
+ if (age >= 18) {
270
*!*
271
return true;
272
*/!*
@@ -277,7 +277,7 @@ function checkAge(age) {
277
}
278
279
280
-let age = prompt('How old are you?', 18);
+let ageCheck = prompt('How old are you?', 18);
281
282
if ( checkAge(age) ) {
283
alert( 'Access granted' );
0 commit comments