You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because we don't want lasers only at level 42; we want lasers for all robots that reach level 42 so they keep them after that too. By adding the function to the prototype, you can call deployLaser after you've reached level 42 and gone beyond.
On Jul 20, 2017 1:29 PM, "Elisabeth Robson" ***@***.***> wrote:
because we don't want lasers only at level 42; we want lasers for all
robots that reach level 42 so they keep them after that too. By adding the
function to the prototype, you can call deployLaser after you've reached
level 42 and gone beyond.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARggdhr6d162sFvixbIpx3_aLQKsK_X0ks5sP5yAgaJpZM4OeWQd>
.
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();
The text was updated successfully, but these errors were encountered: