Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

kindly help me solving this Node.js question

Task

Cart

"Note book "with price 100 rs min quantity should be 3 if its total individual price is greater than or equal to 500rs 10% discount should applied (maximum discount should be limited to 60rs)

"Sanitizer"with price 250 rs min quantity should be 10 if total individual price is greater than 3000 flat 100 rupee discount

"Bag" with price 1500 maximum number in single purchase is limited to 2

If the total cart value is greater than 10000 promo code "PRIME123" Should be applied and with a discount of 123 RS from the cart.

All validation should be done