Skip to content

syongk69/block-16-functions

Repository files navigation

block-16-functions

1. block 16 functions assignment with all functions and if / else-if / else statement

2. block 16 functions assignment with for loop encapsulating functions and if / else-if / else statement

break down the assignment question to different functions based on calculations for checkout system of pharmaceutical startup company

use variables to retrieve values from objects (3 separate customers)

Functions:

use object values of refill price and number of refills to calculate total refill price

if customer has a subscription then customer will receive a 25% discount after the total refill price

if customer has a coupon then customer will receive a $10 discount after the subscription discount

At the end, console log "Your grand total is $..." to show customer's final total price

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published