0
the if is wrong, i don't understand what happening in this is code
Fill in the blanks to calculate the maximum of the parameters: function max(a, b) { if (a >= b) return a ; else return b; }
1 Antwort
+ 2
//The curly brackets are missing. Here’s the correct code:
function max(a, b) {
if (a >= b){
return a
};
else{
return b
};
}