Exerpad
Exercise 4 · Chapter: FunctionsRequired+50 XP

Max of Two

Write a function maxOfTwo(a, b) that returns the bigger number.

Read two numbers and print the result.

Example:

Input:

3
7

Output:

7
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.