Skip to content

getNextId() += 0 ? #4

Description

@robin-raymond

https://github.com/jchadwick/EssentialTypeScriptBook/blob/master/manuscript/05.Classes.md

TodoService.getNextId = function() {
    return TodoService.lastId += 0;
}

Is += 0 intentional? I assume you meant += 1? If not then I'm unclear why it would need to have the += 0.

Activity

  1. jchadwick commented on Jun 12, 2016

    @jchadwick
    Owner

    No, you're right. Should be += 1. Thanks for all the fixes!!

  2. robin-raymond commented on Jun 12, 2016

    @robin-raymond
    ContributorAuthor

    @jchadwick Welcome! I'm throughly enjoying the book. I know it's difficult as a self-publisher to catch all the errors so I hope you don't mind me producing the nits + feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions