mirror of https://github.com/01-edu/public.git
chore(level-up): modify subject description and tests to remove references to alcohol
This commit is contained in:
parent
2cc7a8a432
commit
27d641de15
|
@ -8,16 +8,16 @@
|
|||
"code": "equal(shaker.length, 3)"
|
||||
},
|
||||
{
|
||||
"description": "shaker can make a cocktail.",
|
||||
"code": "equal(shaker(1, 'strawberry', true), '1 strawberry cocktail')"
|
||||
"description": "shaker can make a skinny milkshake.",
|
||||
"code": "equal(shaker(1, 'strawberry', true), '1 skinny strawberry milkshake')"
|
||||
},
|
||||
{
|
||||
"description": "shaker can make a milkshake.",
|
||||
"code": "equal(shaker(1, 'strawberry', false), '1 strawberry milkshake')"
|
||||
},
|
||||
{
|
||||
"description": "shaker can make multiple cocktails.",
|
||||
"code": "equal(shaker(7, 'banana', true), '7 banana cocktails')"
|
||||
"description": "shaker can make multiple skinny milkshakes.",
|
||||
"code": "equal(shaker(7, 'banana', true), '7 skinny banana milkshakes')"
|
||||
},
|
||||
{
|
||||
"description": "shaker can make multiple milkshakes.",
|
||||
|
@ -25,6 +25,6 @@
|
|||
},
|
||||
{
|
||||
"description": "shaker is shakin it right.",
|
||||
"code": "equal(shaker(1, 'vanilla', true), '1 vanilla cocktail')\nequal(shaker(1, 'mango', true), '1 mango cocktail')\nequal(shaker(2, 'banana', true), '2 banana cocktails')\nequal(shaker(2, 'chocolate', false), '2 chocolate milkshakes')\nequal(shaker(2, 'vanilla', false), '2 vanilla milkshakes')\nequal(shaker(2, 'strawberry', false), '2 strawberry milkshakes')"
|
||||
"code": "equal(shaker(1, 'vanilla', true), '1 skinny vanilla milkshake')\nequal(shaker(1, 'mango', true), '1 skinny mango milkshake')\nequal(shaker(2, 'banana', true), '2 skinny banana milkshakes')\nequal(shaker(2, 'chocolate', false), '2 chocolate milkshakes')\nequal(shaker(2, 'vanilla', false), '2 vanilla milkshakes')\nequal(shaker(2, 'strawberry', false), '2 strawberry milkshakes')"
|
||||
}
|
||||
]
|
|
@ -27,24 +27,24 @@ the string `happy` or not. The possibilities are becoming limitless...
|
|||
### Instructions
|
||||
|
||||
As Rick's robot, you are continuing your training to add yourself new ... skills
|
||||
(I could have said funtions). You want now to become a robot bartender.
|
||||
(I could have said funtions). You want now to become a robot barista.
|
||||
|
||||
Define the function `shaker` which will take as arguments:
|
||||
|
||||
- `quantity`, which will be variable of type `Number`
|
||||
- `fruit`, which will be a `String`
|
||||
- `alcohol`, which will be a `Boolean`
|
||||
- `diet`, which will be a `Boolean`
|
||||
|
||||
`shaker` must return a `String`. Look at the examples below to understand how
|
||||
`shaker` must mix its ingredients:
|
||||
|
||||
```js
|
||||
console.log(shaker(1, 'strawberry', true))
|
||||
//'1 strawberry cocktail'
|
||||
//'1 skinny strawberry milkshake'
|
||||
console.log(shaker(2, 'chocolate', false))
|
||||
//'2 chocolate milkshakes'
|
||||
console.log(shaker(2, 'strawberry', true))
|
||||
//'2 strawberry cocktails'
|
||||
//'2 skinny strawberry milkshakes'
|
||||
console.log(shaker(1, 'chocolate', false))
|
||||
//'1 chocolate milkshake'
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue