Skip to content

JavaScript-I | Arthur Lei#1

Merged
nateboyette merged 8 commits intomasterfrom
arthur-lei
Apr 6, 2019
Merged

JavaScript-I | Arthur Lei#1
nateboyette merged 8 commits intomasterfrom
arthur-lei

Conversation

@arturolei
Copy link
Copy Markdown
Owner

No description provided.

@arturolei arturolei requested a review from nateboyette March 28, 2019 03:40
Copy link
Copy Markdown
Collaborator

@nateboyette nateboyette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code looks great and returns the correct issue on the arrays.js file.

The objects file has one issue when setting a method as a property. You have the property name in quotes and in the speak function, you'd need to return the string instead of console logging the string. That's why your methods on the Kennan and Antonietta objects return undefined. For example:

const kennan = {
  id: 2,
  email: "[email protected]",
  name: "Kennan",
  gender: "M",
  speak: function() {
    return "Hello, my name is Kennan!";
  }
};

@nateboyette nateboyette merged commit aee770f into master Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants