Coder Social home page Coder Social logo

js-fun-at-a-restaurant's Introduction

JS Fun at a Restaurant

Overview

In front end web development, the programming language you will encounter most often is JavaScript. Soon, we'll also use HTML and CSS to help a user interact with our applications, however before we do that, we need to understand how to use JavaScript to handle the logic of our applications.

In this project, you'll be gaining experience working with variables, primitive data types, looping, arrays, and objects. As you work through the iterations, be sure to take time to stop and refactor you solutions. There is rarely one right way to solve a problem in programming, and part of your job will be evaulating the trade offs between different approaches to solving a problem.

Learning goals

  • Understand what JavaScript primatives are, and how/when to use them
  • Understand how to declare variables and assign data to them
  • Practice using objects and arrays

Setup

  • Fork this project to your own Github account
  • clone the repository to your local machine
  • cd into the project
  • run npm install to install the necessary dependencies

Iterations

0: Practice Variables, Primitives, Functions, Arrays, and Objects

  • In the src/ directory, you'll find a file called warm-up.js. Read through the instructions in the file carefully. The exercises in this file will help you to complete the rest of the iterations

1: Complete the meal tests

  • For the rest of the iterations, you will be working to build out some js functionality, using a test suite as your guide.
  • Start with the meal.js file.
    • Unskip the first test in test/meal-test.js
    • Run npm test test/meal-test.js
    • Read the error messages CAREFULLY!
    • Make the test pass.
  • Before moving on to the next iteration, take time to refactor your solutions. Is this the best approach to solving the problem? Is there a different way you could make the tests pass?

2: Complete the order tests

  • Unskip the first test in test/order-test.js, and get to work passing the tests
  • Run npm test test/order-test.js
  • Before moving on to the next iteration, take time to refactor your solutions. Is this the best approach to solving the problem? Is there a different way you could make the tests pass?

3: Complete the restaurant tests

  • Unskip the first test in test/restaurant-test.js and get to work passing the tests
  • Run npm test test/restaurant-test.js
  • Before moving on to the next iteration, take time to refactor your solutions. Is this the best approach to solving the problem? Is there a different way you could make the tests pass?

Extension (If you get to it): Complete the Chef tests

  • Unskip the first test in test/Chef-test.js, and get to work passing the tests
  • Run npm test test/Chef-test.js
  • Take time to refactor your solutions. Is this the best approach to solving the problem? Is there a different way you could make the tests pass?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.