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.
18 lines
887 B
18 lines
887 B
4 years ago
|
[
|
||
|
{
|
||
|
"description": "oldestAge is a number",
|
||
|
"code": "let kevin = { age: 14 }\nlet stephanie = { age: 25 }\nlet martin = { age: 32 }\n\n// Your code\n\nequal(typeof oldestAge, 'number')"
|
||
|
},
|
||
|
{
|
||
|
"description": "oldestAge is the maximum value of the age property (martin)",
|
||
|
"code": "let kevin = { age: 14 }\nlet stephanie = { age: 25 }\nlet martin = { age: 32 }\n\n// Your code\n\nequal(oldestAge, 32)"
|
||
|
},
|
||
|
{
|
||
|
"description": "oldestAge is still the maximum value of the age property (kevin)",
|
||
|
"code": "let kevin = { age: 67 }\nlet stephanie = { age: 25 }\nlet martin = { age: 32 }\n\n// Your code\n\nequal(oldestAge, 67)"
|
||
|
},
|
||
|
{
|
||
|
"description": "oldestAge is still the maximum value of the age property (stephanie)",
|
||
|
"code": "let kevin = { age: 29 }\nlet stephanie = { age: 45 }\nlet martin = { age: 32 }\n\n// Your code\n\nequal(oldestAge, 45)"
|
||
|
}
|
||
|
]
|