<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/functions_in_javascript/3/3?curriculum_id=50b3b2201e0a31cfe4000b4f
<In what way does your code behave incorrectly? Include ALL error messages.>
It says that my code doesn’t print, why? NOTE: I am aware that this section is a rough draft (it has some awkward formatting in some places).
function doubleMax(x, y) {
// add the correct function call after the ‘+’ operator
return 2 * getMaxnum(x, y);
};
// call me for help!
function getMaxnum(n1, n2) {
if (n1 < n2) {
return n2;
} else {
return n1;
}
};
<do not remove the three backticks above>