- Define a function max() that takes two numbers as arguments and returns the largest of them. Use the if-then-else construct available in Javascript.
- Log the result in the console.
This is part 1 of a series of JavaScript training exercises. It was created for new-ish front end devs, and designers at thunder::tech, but you can use it too!
this exercise was taken from: http://www.ling.gu.se/~lager/teaching/dialogue_systems%20II/labs/javascript.html