1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
seraphim [82]
2 years ago
14

Assume that a function with this header: function amountSaved(price, discountRate, salesTaxRate) already exists. Write a single

line of JavaScript code to call that function and assign the value returned from that function to a variable named saved.
Computers and Technology
1 answer:
Levart [38]2 years ago
4 0

Answer:

let saved = amountSaved(12, 0.9, 0.06);

Explanation:

By presuming there is a JavaScript function <em>amountSaved() </em>that takes three input parameters, <em>price</em>, <em>discountRate</em> & <em>salesTaxRate</em>.  To call the function, just simply write the function name, <em>amountSaved</em> followed with a pair of parenthesis. Within the parenthesis, include three testing values, 12, 0.9, 0.06 as arguments. These argument values will be held by the three parameter <em>price</em>, <em>discountRate</em> and <em>salesTaxRate</em>, respectively.

The function will operate on the three input values and return the result to the main program where the returned result is assigned to a variable name <em>saved</em>.

You might be interested in
What is the Piston Displacement having 3-inch bore and 3-inch stroke?
n200080 [17]

Answer:

<h3>Displacement = 0.7854 x bore² x stroke x # of cylinders.</h3><h3 /><h3>.7854 x 3² x 3 x 4 = 84.82 cubic inches</h3>

Explanation:

<h2><em><u>PLEASE</u></em><em><u> </u></em><em><u>MARK</u></em><em><u> ME</u></em><em><u> BRAINLIEST</u></em><em><u> AND</u></em><em><u> FOLLOW</u></em><em><u> ME</u></em><em><u> LOTS</u></em><em><u> OF</u></em><em><u> LOVE</u></em><em><u> FROM</u></em><em><u> MY</u></em><em><u> HEART'AND</u></em><em><u> SOUL</u></em><em><u> DARLING</u></em><em><u> </u></em><em><u>TEJASWINI</u></em><em><u> SINHA</u></em><em><u> HERE</u></em><em><u> </u></em><em><u>❤️</u></em></h2>
3 0
3 years ago
Mica's creating his web page with a software that is free of charge for the first month. If he likes the program, he will have t
Katarina [22]
The answer is C. Shareware
4 0
3 years ago
Read 2 more answers
What is a feature of webmail
Fantom [35]

Answer:

Webmail allows the users to access their emails as long as they have access to an Internet connection and a web browser. This also means that the user cannot read an old email or draft a new email offline.

8 0
3 years ago
What is communication barriers?​
SSSSS [86.1K]

Answer:

A communication barrier is anything that prevents us from receiving and understanding the messages others use to convey their information, ideas and thoughts.They can interfere with or block the message you are trying to send.

7 0
3 years ago
Read 2 more answers
The function below takes a single string parameter: sentence. Complete the function to return everything but the middle 10 chara
dolphi86 [110]

Answer:

def get_middle_ten(sentence):

   ind = (len(sentence) - 12) // 2

   return sentence[ind:ind + 12]

# Testing the function here. ignore/remove the code below if not required

print(get_middle_twelve("abcdefghijkl"))

print(get_middle_twelve("abcdefghijklmnopqr"))

print(get_middle_twelve("abcdefghijklmnopqrst"))

7 0
3 years ago
Other questions:
  • Match the job skills with the correct job role.
    12·1 answer
  • Where is authorization management app on tablet?
    7·1 answer
  • ________ software provides a means of sharing, distributing, and searching through documents by converting them into a format th
    13·1 answer
  • Which company operates a public cloud?<br><br> Lotus<br> Acme<br> Google<br> Symantec
    5·2 answers
  • PLEASE HELP ASAP!!!
    8·1 answer
  • Why did latex replace wax?
    7·1 answer
  • Which Tab contains the font style attributes?<br><br> Home<br> Insert<br> Review<br> View
    8·2 answers
  • Image-editing software is used to_____
    7·1 answer
  • What software maintain and increase the efficiency of a computer system?
    12·1 answer
  • Similarities between master file and reference file
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!