Git Product home page Git Product logo

phone-comparison-promises's Introduction

Problem Statement

Make sure that this is done with Promises.

You are required to replace your phone due to an unfortunate altercation between it and the wall.

You have a couple of tests that you run any big purchase against

  1. It needs to have been made in the last 2 years.
  2. You don't believe in the big 2. No Apple or Google
  3. Can you afford it. Nan's birthday won't pay for itself so you can only afford $500.00

Each of these need:

  • to be standalone functions
  • to return an array of objects
  • be eventually passed to the options function that will result in an array of objects of the best options.

How to run the tests

inside the directory that we cloned the Challenge into, run:

npm init -y

To Install the testing framework, run the install command:

npm install jest

We now need to Update the script that is found inside of the package.json file. it should look like:

"scripts": { "test": "jest" }

inside your terminal you can now run:

npm test

If you would like to keep a copy of this challenge in your own Github repo.

Create a new Repo with no Readme and no licence

update the remote of your challenge.

  1. git remote set-url origin

  2. git add/ commit / push

phone-comparison-promises's People

Contributors

ash-eileen avatar

Watchers

James Cloos avatar  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.