public/subjects/maximus
Clement Denis 3cdfd1a34c discovery-piscine: update exercises and test 2021-04-12 03:15:36 +01:00
..
README.md discovery-piscine: update exercises and test 2021-04-12 03:15:36 +01:00

README.md

Maximus ⚔️

maximus

Multiple arguments

Functions can take multiple arguments, example:

console.log('first', 2) // both arguments will appear in your console

Values are simply separated by a , comma, like values in an Array.

Instructions

We provide you with 3 users objects assigned in their respective variables martin, kevin, and stephanie.

  • Declare an oldestAge variable that use the Math.max on their age property to find the oldest age.

Hint: Maybe find out how the Math.max function works before starting this exercise.