Skip to content

the problem with state snippet output #63

Description

@VitGottwald

First of all thank you for this wonderful book! I bought it after having read about half of it on learnpub. It is the best javascript book I found so far!

Under the subsection the problem with state of Stateful Method Decorators section, the code

musician.fullName() //=> Raymond Smullyan

is incorrect - the statement actually returns TypeError: Cannot read property 'fullName' of undefined. This is because once being called for the 2nd time returns undefined and hence musician is undefined.

Activity

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