4.5 Review of Functions in JavaScript

javascript
non-track-course

#1

<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>

#2

Do you see it print, in front of you, on your screen? If it doesn’t, it’s because you didn’t call the function.
Call the function like this:

doubleMax(1, 2); // 2 * 2 = 4, returns 4.