Skip to content

user-story-based-exercises/sew-working-with-objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

SEW | Working with Objects

User Story 1

As a curious developer I want to learn about objects, so that I can use them in the right way.

Acceptance Criteria

  • An object x is defined in a certain way, so that the statement console.log(x.y.z) prints 42 on the console.

User Story 2

As a curious developer I want to learn about objects, so that I can use them in the right way.

Acceptance Criteria

  • An object v is defined in a certain way, so that the statement console.log(v.v().v) prints 42 on the console.

User Story 3

As a lazy developer I want to count members of an object easily, so that I can use them in the right way.

Acceptance Criteria

  • A function numberMembers(obj) is available.
  • The function returns the number of members (properties and methods) of obj.

User Story 4

As a lazy developer I want to compare the structure of two objects easily, so that I can be sure about them.

Acceptance Criteria

  • A function equals(obj1, ob2) is available.
  • The function returns true, if obj1 and obj2 are equal.
  • The objects are equal if
    • they have the same number of members
    • if they both have members with the same name
  • The order of the members does not matter

Skill(s)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published