Giter Club home page Giter Club logo

calc-you-later's Introduction

Calc You Later

Today we're going to be building a basic calculator. Don't worry, it's way easier than it sounds!

Objectives

You'll be able to:

  • Convert strings to numbers.
  • Separate your logic from your interface.

Basics

This is a test-driven app. You'll do most of your work in calculate.js, looking at the tests in calculate.test.js for reference, and running npm test in a dedicated terminal to watch your progress. Don't forget to run npm install first, though!

Once you've got a good calculate function that passes all the tests, we can use it in a full-scale app that can take user input. We'll do that in the calc-you-later.js file. You'll grab the user's input, call the calculate function we're pulling in with the user's input instead of the examples we're using in our tests, and console out the return value.

calc-you-later's People

Watchers

 avatar

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.