Question: Javascript: Write a function that returns the total cost of any number of buckets of paint. Ask the user how many buckets he or she

Javascript: Write a function that returns the total cost of any number of buckets of paint. Ask the user how many buckets he or she is going to buy and for the cost of one bucket. Ask the user the color of the paint. Calculate and return what he or she owes. Change the color of the font to the color of the paint. Use .innerHTML to display your output. Check that the user doesnt give you a color of paint that is the same color as the background of your document or you will not be able to see the color of the font.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!