Review of Functions in Java Script #11 Helper Functions

javascript
non-track-course

#1

Hey Everyone.... working on one of the incomplete tutorials...
I think I've run into a bug... any help would be great....
I'll post questions and comments below.


#2

Start by posting a link to the exercise in question.


#3

Hey Everyone... here is the link to #11

Review of Functions in Java Script. #11 Helper Functions.


#4

There is a warning in these steps of tutorials....

WARNING! YOU ARE NOW IN UNCHARTED WATERS. THE REST OF THIS COURSE HAS NOT BEEN COMPLETED OR EDITED. THE INFORMATION CONTAINED IN THIS SECTION HAS BEEN TAUGHT ELSEWHERE AS WELL. WE CANNOT ENSURE THE QUALITY OF THE REST OF THIS SECTION.

I've been warned :slight_smile:


#6

You've managed to find a non-track course with little or no SCT support, but you still haven't found the Help section that discusses formatting code samples in posts? Hint. Help > Q&A Forums > How to post code samples. Please fix your post.


#7

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

doubleMax(4, 6);

The console is posting the correct response with an integer of 12.
I get an error saying "Opps, Your code did not print out."

I dont know if I found that hint for properly posting to the forum.
I'll figure that out today.
Thanks for any help. DB


#8


#9

There's always a typo. :slight_smile:

If that is what ultimately is going on here, Im sorry.
I think I've checked everything.


#11

still trying to figure this out.....


#13
console.log(doubleMax(4,6))

The output you are currently seeing is a response of the console, not a print out.

This exercise will not let you pass, no matter what so don't get hung up on it. Think of it as unsupervised practice.


#14

Drag. Ok.

yeah, I've tried the console.log command.... and that prints out the correct answer.

But as you said..... this exercise will not let me pass.

Glad I made the post, for if nothing else, the crew up at Codecademy had a chance to take another look at this particular set of tutorials.

Thank you for your help @mtf

I'll keep learning how to properly post the code to the forums.

:pray:


#15

var Sass = function() {
	return "Oh Yeah!";
};

console.log(Sass());

#17