JavaScript Challenges


The Foundations

1. Suuq Receipt

Faadumo runs a small shop. A customer buys rice for $12 and chicken for $18. Tax is 10%.

Calculate the full receipt:

Example Output:

Rice: $12
Chicken: $18
Subtotal: $30
Tax (10%): $3
Total: $33

2. Salary

Bile worked 80 hours this month. His rate is 175 NOK per hour. Tax is 22%.

Calculate his earnings:

Example Output:

Gross pay: 14000 NOK
Tax: 3080 NOK
Net pay: 10920 NOK

3. Student Profile