Skip to content

fikrcamp/tip-calculator-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tip calculator using DOM๐Ÿ’ช๐Ÿพ

Aisha wants to build a very simple tip calculator for whenever she goes eating in a restaurant. In her country, it's usual to tip 15% if the bill value is between 50 and 300. If the value is different, the tip is 20%.

Your Task ๐Ÿ˜ƒ:
  1. Using your DOM knowledge when user enters his bill inside the textbox and clicks on the button
    • Calculate the tip, depending on the bill value.
    • Display a the following sentence using dom inside the P tag with the class name of result Example: 'The bill was 275, the tip was 41.25, and the total value 316.25'

Good Luck ๐Ÿ˜€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published