-
Notifications
You must be signed in to change notification settings - Fork 341
Open
@tygamchenry
Description
Hello,
Why is a function needed under the unlock function? The following doesn't work... why doesn't it?
Game.prototype.unlock = function() {
if (this.level === 42) {
console.log(this.name + " is blasting you with laser beams.");
}
}
...
robby.unlock();
rosie.unlock();
Metadata
Metadata
Assignees
Labels
No labels