As a gambler, I want to use an automated Lotto tip generator, so that I can create tips more efficiently.
- a function
lottoTip()
is available, which creates a random tip - the return value of this function is an array
- the numbers are in an ascending order
- there are no duplicates in the result
As a bank employee, I want to use a coin converter app, so that I can save time and serve more customers.
- the function
convert(amount)
is available, which converts a given amount of cent into as few as possible coins - the result is an object, which shows the amount of coins per value, e.g. { '100': 1, '50': 1, '20': 2, '5': 1, '2': 2 }
- only used values are represented within the resulting object
As a developer, I want to create a revert function, so that I can mess with the user's input.
- the function
revert(text)
is available - numbers can be reverted (e.g.
revert(42)
) - the function is as simple and compact as possible
- Mozilla Developer Network (MDN): https://developer.mozilla.org/en-US/
- SkillSet: https://my.skilldisplay.eu/en/skillset/589