Monday, January 9, 2012

Codecademy - Functions in Javascript Lesson 2 - Argument Types, part 1

I just had a nice little hour of fun with Codecademy but wound up taking too much time on this problem: http://www.codecademy.com/courses/functions_in_javascript/1#!/exercises/2

Here's a hint (and then an answer) to help you figure this one out.  The unstated goal is to see the output of cube("test"). How can you do that?

Highlight the lines below for some additional help:

Perhaps you could send the results of that call to the console log?


Line 6 in the example shows how to put the output of cube(5) in the console ;)