Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed Object-Oriented JavaScript: Challenge!

Instruction

get owner() Solution

get owner() Solution

Here is the solution for the owner getter method in the Space.js file

/**
 * Checks if space has an associated token to find its owner
 * @return  {(null|Object)} Returns null or the owner object of the space's associated token.
 */
get owner() {
    if (this.token === null) {
        return null;
    } else {
        return this.token.owner...