add functions

pull/859/head
Yuliia Mustafina 3 years ago committed by GitHub
parent a583ac6c2e
commit d317b4f7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,6 +8,27 @@ See if you can create a function that has a mix of parameters and parameters wit
## Rubric ## Rubric
`function checkAge(name, surname, age) {
const userName = name;
const userSurname = surname;
const userAge = age;
if (age > 18) {
return console.log(
`Hello ${name} ${surname}! You ready for work! Good luck!`
);
} else {
return console.log(
`Hello ${name} ${surname}, sorry you too small for this project`
);
}
}
function addNumbers(a, b = 10) {
const result = a + b;
console.log(result);
}`
| Criteria | Exemplary | Adequate | Needs Improvement | | Criteria | Exemplary | Adequate | Needs Improvement |
| -------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------- | | -------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------- |
| | Solution is offered with two or more well-performing functions with diverse parameters | Working solution is offered with one function and few parameters | Solution has bugs | | | Solution is offered with two or more well-performing functions with diverse parameters | Working solution is offered with one function and few parameters | Solution has bugs |

Loading…
Cancel
Save