-
-
Notifications
You must be signed in to change notification settings - Fork 436
London Class 10 - Yuliya Hospodar - Java Script-Core-1-Coursework-Week2 #462
base: main
Are you sure you want to change the base?
Conversation
| function getMood() { | ||
| let isHappy = true; | ||
|
|
||
| function getMood(isHappy) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work fixing the problem 👍
| } else { | ||
| return "I am not happy"; | ||
| } | ||
| }z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have a stray 'z' character here
|
|
||
| function greaterThan10(num) { | ||
| let isBigEnough; | ||
| let isBigEnough = num > 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done :)
| function isAcceptableUser(userAge, isLoggedIn) { | ||
| let isAcceptable = userAge >= 18 && isLoggedIn; | ||
| return isAcceptable; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 👍
| function applyDiscount(totalPrice) { | ||
| let discountSale; | ||
| if(totalPrice > 200) { | ||
| discountSale = 10; | ||
| } else { | ||
| discountSale = 5; | ||
| } | ||
| return totalPrice - (totalPrice * discountSale) / 100; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
DaleCausierIress
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good 👍
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.mdin the root of this repositoryYour Details
Homework Details
Notes
What did you find easy?
What did you find hard?
What do you still not understand?
Any other notes?