Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmalcolm mowlam
3,856 Pointscan anyone please help with javascript functions task i
function max (
1 Answer
Ms Na W
5,978 Pointsgood start- remember the general structure of a function-
function max () {} firstly, remember to name your arguments within the function brackets ()
Remember your conditional statements- if () {} if (this condition is true) {then do this function}
you want to find out if firstNumber is bigger (>) than secondNumber before you return it so use the conditional statement to find that out Hope that helps and good luck!
malcolm mowlam
3,856 Pointsmalcolm mowlam
3,856 Pointsthank you Na Wei
malcolm mowlam
3,856 Pointsmalcolm mowlam
3,856 PointsJust to let you know that is helping a lot thank you Na