Skip to content

Week 4 practice#57

Open
Nabraha wants to merge 14 commits intorarmatei:masterfrom
Nabraha:week-4-practice
Open

Week 4 practice#57
Nabraha wants to merge 14 commits intorarmatei:masterfrom
Nabraha:week-4-practice

Conversation

@Nabraha
Copy link

@Nabraha Nabraha commented Apr 3, 2019

No description provided.

return "Hi, my name is " + element.firstName + " " + element.lastName + ".I am " + element.age + " years old, and work as a "+ element.occupation+".";
}
)
}

Choose a reason for hiding this comment

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

All looks good!

volume: 0,
fill: function() {
fill: function () {
return this.volume = 100;

Choose a reason for hiding this comment

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

You don't actually need to return a value here.

Copy link
Author

Choose a reason for hiding this comment

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

Will commit the change

},
empty: function() {
empty: function () {
return this.volume === this.volume ? true : false;

Choose a reason for hiding this comment

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

Think there's a typo here - you want to check the volume is zero, not that the volume equals the volume, surely?

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