diff --git a/1-js/02-first-steps/14-function-basics/article.md b/1-js/02-first-steps/14-function-basics/article.md index b1881e31..98764337 100644 --- a/1-js/02-first-steps/14-function-basics/article.md +++ b/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: ```js run function checkAge(age) { - if (age > 18) { + if (age >= 18) { *!* return true; */!* @@ -277,7 +277,7 @@ function checkAge(age) { } } -let age = prompt('How old are you?', 18); +let ageCheck = prompt('How old are you?', 18); if ( checkAge(age) ) { alert( 'Access granted' );