Skip to content

Add grade-school exercise #199

Closed
@atk

Description

@atk

Again the output format is a conundrum. While roster() is best expressed as JSON string, we would usually use a string with a line-break after each name for grade(number). I wouldn't want to mix and match, so I see two ways to go about this.

  1. Go JSON all the way
  2. Go formatted strings all the way

JSON would be obviously the exact same output that is expected from JS. A formatted string would introduce the next grade as a line containing only a number and a line-break, followed by all names ended with line-breaks, e.g.

3
Chelsea
7
Logan

Please share your opinion about which way to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions