mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
674 B
24 lines
674 B
4 years ago
|
## Maximus
|
||
|
|
||
|
![maximus](https://user-images.githubusercontent.com/231748/112197288-d322dd00-8c03-11eb-95e4-a5253043578d.jpg)
|
||
|
|
||
|
### Multiple arguments
|
||
|
|
||
|
Functions can take multiple arguments, example:
|
||
|
|
||
|
```js
|
||
|
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.
|