Skip to content

Chapter3 Builder.js tournament.events.push#1

@imrek

Description

@imrek

Hello,

shouldn't the Tournament class actually have something like this.events = [];?
Because when you run code likes this:

var tournament = new Tournament(); tournament.events.push(new Event("Joust")); 

the tournament object will not have an events property if you define the class like this:

var Tournament = (function (){function Tournament(){} return Tournament})(); 

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