Skip to content

Mikas pizza bot#156

Open
mikaeber wants to merge 3 commits intoTechnigo:mainfrom
mikaeber:main
Open

Mikas pizza bot#156
mikaeber wants to merge 3 commits intoTechnigo:mainfrom
mikaeber:main

Conversation

@mikaeber
Copy link
Copy Markdown

@mikaeber mikaeber commented Sep 8, 2024

Copy link
Copy Markdown
Contributor

@HIPPIEKICK HIPPIEKICK 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 on your project! 🎉

JavaScript

  • The if-else structure for checking valid food choices (foodNumber >= 1 && foodNumber <= 3) is implemented correctly. Nice work! For readability, you could consider combining this logic with your switch case that follows right after.
  • Nice that you tried both if/else and switch ⭐
  • Using template literals (backticks) to embed variables inside strings makes your code cleaner and more readable. Keep this up 👍
  • The use of the function ageString is a good step toward writing modular code. One suggestion: instead of calling it ageString, you could name the function after what it does, such as decideDishSize or checkAge

Clean Code

  • The indentation is consistent, which helps in readability. Keeping it uniform is key, and you’ve done well here.
  • Overall very descriptive variable names ⭐

Well done Mika, keep up the good work 🥳

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.

3 participants