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.
20 lines
591 B
20 lines
591 B
4 years ago
|
## Mixed Feelings
|
||
|
|
||
|
Unlike feelings, mixed data can be great !
|
||
|
|
||
|
### Mixed data types
|
||
|
|
||
|
Like objects, arrays are values and so you can have arrays of arrays, or arrays
|
||
|
of objects, or arrays of objects with arrays in them or... well, you get the
|
||
|
picture.
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
You must create a `mixedFeelings` variable that is an array of 3 _emotions_.
|
||
|
|
||
|
An emotion is an object with 2 properties:
|
||
|
|
||
|
- a `type` property of value being one of the following strings `'happiness'`,
|
||
|
`'sadness'`, `'disgust'`, `'fear'`, `'surprise'` or `'anger'`
|
||
|
- a `level` property of value being a number from `0-9`
|