Skip to content

sh-happens/The-Coupon-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms --- The-Coupon-Code

1. Getting started

Fork this repo and clone it on your computer,git clone.

2. Challenge

Story Your online store likes to give out coupons for special occasions. Some customers try to cheat the system by entering invalid codes or using expired coupons.

Task Your mission: Write a function called checkCoupon which verifies that a coupon code is valid and not expired.

A coupon is no more valid on the day AFTER the expiration date. All dates will be passed as strings in this format: "MONTH DATE, YEAR".

2.1. Testing your solution

To test your solution, run npm i in the root directory and then run npm t to run the automated tests.

2.2. Submitting your solution

Once you're finished git push and submit a pull request to: https://github.com/sh-happens/The-Coupon-Code.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published