Skip to content

user-story-based-exercises/sew-core-javascript-warm-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

SEW | CORE | JavaScript Warm-Up

User Story 1

As a gambler, I want to use an automated Lotto tip generator, so that I can create tips more efficiently.

Acceptance Criteria

  • 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

User Story 2

As a bank employee, I want to use a coin converter app, so that I can save time and serve more customers.

Acceptance Criteria

  • 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

User Story 3

As a developer, I want to create a revert function, so that I can mess with the user's input.

Acceptance Criteria

  • the function revert(text) is available
  • numbers can be reverted (e.g. revert(42))
  • the function is as simple and compact as possible

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •