Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2019. It is now read-only.

Conversation

@ryanbsherrill
Copy link

Questions for Instructors:

  • Am I completing these assignments in the correct manner (writing 'pure JS' etc.)?
  • Is my code compliant with the AirB&B style guide?
  • Is my code consistent in general?
  • What do I do well?
  • What could use some improvement?
  • What resources and/or practices would you recommend to facilitate such improvements?
  • Why is Lambda University the absolute best?!?!

this.age = options.age;
}
growOlder() {
return this.age + 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be:

this.age++;
return this.age;

Right now your method will return 2 every single time it is called

// Example: const newCounter = counter();
// newCounter(); // 1
// newCounter(); // 2
let ct = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

People have different opinions on this but I prefer more descriptive variable names like count over ct

@SunJieMing
Copy link
Contributor

Looks very good

@SunJieMing SunJieMing closed this Sep 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.