Code Monkey home page Code Monkey logo

count-up-by's Introduction

Describe: countUpBy

Test1: If we put 5 in count to and 5 in count by then output should be 30 Code: const countTo = 5; const countBy = 1; countUpBy(countTo, countBy); Expected Output: 5;

Test2: Number passed in should be a number not a string Code: const countTo = 5; const countBy = 1; countUpBy(countTo, countBy); Expected Output: 5;

Test3: Never accept 0 as countBy Code: const countTo = 5; const countBy = 0; countUpBy(countTo, countBy); Expected Output: "Can't use 0 as count by";

Test4: It should return 1, 2, 3, 4, 5 if we count from 1 to 5 Code: const countTo = 5; const countBy = 1; countUpBy(countTo, countBy); Expected Output: 1, 2, 3, 4, 5;

Test5: It should return 5, 10, 15, 20, 25, 30 if we count from 5 to 30 Code: const countTo = 30; const countBy = 5; countUpBy(countTo, countBy); Expected Output: 5, 10, 15, 20, 25, 30;

Test6: It should return nothing if we put in nothing Code: const countTo = ; const countBy = ; countUpBy(countTo, countBy); Expected Output: ;

Test7: It should communicate that they should enter a number if we put in non-numeric values Code: const countTo = NaN; const countBy = NaN; countUpBy(countTo, countBy); Expected Output: "This is not a number. Please enter a number.";

Test8: It should return -1, 0, 1, 2, 3, 4, 5 if we put in a negative number for countBy Code: const countTo = 5; const countBy = -1; countUpBy(countTo, countBy); Expected Output: -1, 0, 1, 2, 3, 4, 5;

Test9: It should return -1, -2, -3, -4, -5 if we put in a negative number for both numbers Code: const countTo = -5; const countBy = -1; countUpBy(countTo, countBy); Expected Output: -1, -2, -3, -4, -5;

Test10: It should say "Please keep both numbers same positive or same negative" if countTo and countBy are different +-. Code: const countTo = -5; const countBy = 1; countUpBy(countTo, countBy); Expected Output: "Please keep both numbers same positive or same negative";

Test11: It should say 'Unable to count multiples backwards' if Count by number is larger than the count to numbers. Code: const countTo = 2; const countBy = 5; countUpBy(countTo, countBy); Expected Output: 'Unable to count multiples backwards';

Count Up By

By Seung Lee, Winnie Wang, Filmer Tolentino

{Brief description of application}

Technologies Used

  • List all
  • the major technologies
  • you used in your project
  • here

Description

{This is a detailed description of your application. Give as much detail as needed to explain what the application does as well as any other information you want users or other developers to have.}

Setup/Installation Requirements

  • This is a great place
  • to list setup instructions
  • in a simple
  • easy-to-understand
  • format

{Leave nothing to chance! You want it to be easy for potential users, employers and collaborators to run your app. Do I need to run a server? How should I set up my databases? Is there other code this application depends on? We recommend deleting the project from your desktop, re-cloning the project from GitHub, and writing down all the steps necessary to get the project working again.}

Known Bugs

  • Any known issues
  • should go here

License

{Let people know what to do if they run into any issues or have questions, ideas or concerns. Encourage them to contact you or make a contribution to the code.}

GNU

Copyright (c) 2022 Seung Lee

count-up-by's People

Contributors

leark 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.