4.5 Review of Functions in JavaScript

javascript
non-track-course

#1



https://www.codecademy.com/en/courses/functions_in_javascript/3/3?curriculum_id=50b3b2201e0a31cfe4000b4f


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


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