Adding Home work3

Adding Home work3
pull/834/head
SaniieAsanova 3 years ago committed by GitHub
parent a9945bc637
commit 1de00605d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,4 +10,24 @@ See if you can create a function that has a mix of parameters and parameters wit
| 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 |
function summ(x, y) {
console.log(x+y);
}
function ranNum() {
let min = 10;
let max = 100;
let rand = min + Math.random() * (max + 1 - min);
return Math.floor(rand);
}
function bigNum(x,y) {
if (x > y) return x;
if (x < y) return y;
}
console.log(bigNum(9, 4));

Loading…
Cancel
Save