Skip to content

user-story-based-exercises/sew-core-javascript-array-methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

SEW | CORE | JavaScript Array Methods

User Story 1

As a content creator I need an easy to use system to sort an array in lexical order, so that I can created sorted list much faster.

Acceptance Criteria

  • A function that takes an array of string as a parameter is available.
  • The result is an array consisting of the same strings as the input array, only sorted in lexical order
  • Hint: take a look at the string method: localeCompare()

User Story 2

As a developer I want to filter an array, so that only even numbers are in the result.

Acceptance Criteria

  • A function that takes an array of numbers as a parameter is available.
  • The result is an array consisting only of even numbers

User Story 3

As a developer I want to filter an array, so that only words starting with capital letters are in the result.

Acceptance Criteria

  • A function that takes an array of strings as a parameter is available.
  • The result is an array consisting only of words that start with a capital letter.

User Story 4

As a mathematician I want to create a function, so that I can easily calculate the modulo of all numbers in an array.

Acceptance Criteria

  • A function that takes an array of numbers and a value for the modulo calculation as parameters is available.
  • The result is an array consisting of the calculated values.

User Story 5

As a sysadmin I want to create a function, so that I can easily create all lower case strings.

Acceptance Criteria

  • A function that takes an array of strings as a parameter is available.
  • The result is an array consisting of all strings converted to lower case.

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •