Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Conversation

CatSmith1
Copy link

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

Copy link
Contributor

@gregdyke gregdyke left a comment

Choose a reason for hiding this comment

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

Great job!

*/
function isAcceptableUser(userAge, isLoggedIn) {}
function isAcceptableUser(userAge, isLoggedIn) {
let UserisAcceptable = userAge >= 18 && isLoggedIn
Copy link
Contributor

Choose a reason for hiding this comment

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

That is a great name for this variable. The convention in javascript (at CYF - otherwise it might depend on the company you work for, but most probably have similar conventions) is for variable names to begin with a lower case (andThenHaveUpperCase)


function applyDiscount(totalPrice) {}
function applyDiscount(totalPrice) {
let percent;
Copy link
Contributor

Choose a reason for hiding this comment

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

You seem to not have automatic code formatting turned on. This is really important for it to be easy to read your code. Could you take a look at the instructions in the readme of the coursework for week 1? It should say how to enable format on save. It might be blocked by having auto-save turned on, or by 2 formatters conflicting with each other. Ask your buddy or someone on Saturday to help you

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