Skip to content

Marias-Pizza-bot#153

Open
Maryyy-ux wants to merge 3 commits intoTechnigo:mainfrom
Maryyy-ux:main
Open

Marias-Pizza-bot#153
Maryyy-ux wants to merge 3 commits intoTechnigo:mainfrom
Maryyy-ux:main

Conversation

@Maryyy-ux
Copy link

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/

Copy link
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 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!

Comment on lines +35 to +46
<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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Really nice! 😋

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