-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marias-Pizza-bot #153
base: main
Are you sure you want to change the base?
Marias-Pizza-bot #153
Conversation
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.
Great work on tackling this JavaScript pizzeria project 🍕
JavaScript
- You’ve done a good job converting input to lowercase for the age group prompt. However, this pattern could be applied consistently for other inputs as well (like confirmation).
- We recommend using let or const instead of var for variable declarations
- Using template literals for string concatenations makes the code cleaner and shorter:
alert(`Hi, ${userName}!`);
- It's good practice to define all global variables at the top of your file
- Use strict comparison operator: === instead of ==
Clean code
- Nice that you broke out e.g. the orderMessage in to its own variable ⭐
- Your code is overall clean!
Good job with this project! Nice to see that you tried out both the if/else as well as the switch approach!
<div class="video-container"> | ||
<video autoplay muted loop id="background-video"> | ||
<source src="7172270-uhd_3840_2160_25fps.mp4" type="video/mp4"> | ||
</video> | ||
<div class="overlay-text"> | ||
<h1>Maria's Pizza</h1> | ||
<p>Logic is executed automatically.</p> | ||
<script src="./script.js"></script> | ||
<link rel="<script src=" switch.js"> | ||
</script> | ||
</div> | ||
</div> |
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.
Really nice! 😋
Project Name
Marias-Pizza-bot
The assignment was to create a site with JavaScript (my first approach to JavaScript on the boot camp) to include a bot on the page. The main goal of the site is the introduction to JavaScript, not the layout. it's a basic site!
View it live
I have deployed the project on Netlify:
https://66dde3fcd116e57b6d1fefd1--merry-gecko-a9c5af.netlify.app/