Open JakeTheFlare opened 6 years ago
function funcDeclaration() { return 'A function declaration'; }
var funcExpression = function () { return 'A function expression'; }
the waters were muddied labeling it definition. Instead of declaration.
Jon's function looks correct- that's what I have for the first problem as well!
It asked us to log it into the console so instead of return shouldn't you use the console.log(the result)
@marchendrickson You are right I used console.log in mine. What I posted earlier was the best example I could find as far as the difference between a declaration and expression. Good call I should have been clearer as well. Cheers!!
You all are on the right track!
Thank you so much everyone.
Does anyone get the first problem in the HW4 assignment? I'm just completely confused right now.