Skip to content

Olcaytp/my-project-pizza-technigo-week1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

In this project, we will explore fundamental JavaScript concepts such as variables, conditionals, and native methods. We have created a coding playground to help one master these basics without distractions.

ScreenShots

2


3


1


4******************************************************************************************************************* 5

The Problem

  • alert() Method: In the first step, we used the alert() method to display a welcome message to the user. This method allows us to communicate with the user through pop-up message boxes. To customize the message, we used templates and ${} placeholders to add dynamic content.

  • prompt() Method: We used the prompt() method to ask the user for their name and food choice. This method is used to receive user input. While taking user input, we performed data validation to ensure that only valid names containing letters and spaces were accepted.

  • Do-While Loops: We employed do-while loops to repeatedly ask questions until we received valid input from the user. These loops allow us to keep asking questions until the user provides valid input.

  • Switch-Case Statements: To determine the chosen food type and subtype based on the user's input, we used switch-case statements. These statements help us set variables based on the user's selection.

  • Conditional Statements: We used conditional statements (if, else if, else) to control and validate user input, rejecting invalid entries.

Project Description

These tools and techniques were utilized to create an interactive food ordering application, where we welcomed the user, collected their name, and allowed them to choose a food type and subtype. This process helps in understanding fundamental JavaScript concepts and their practical application.

Deployment

I've deployed the project, and you can explore it by clicking on the following link: Project Link. Feel free to take a look and see what it's all about!"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.3%
  • HTML 7.3%
  • CSS 3.4%