How can you round a price variable's value to the hundredths place (e.g., 204.89) ?
A) Use the remainder operator, price % 2.
B) Use the division operator, price / 2.
C) Call the round method, price.round(2) .
D) Call the toFixed method, price.toFixed(2) .
Correct Answer:
Verified
Q20: A(n) _ is a pictorial representation of
Q21: Proper coding conventions suggest that when there
Q22: How can you test two strings to
Q23: Suppose you have a variable named character.
Q24: The *:not(a) pseudo-class selector selects which of
Q26: The window object is known as the
Q27: A dialog box is a control that
Q28: A block statement (zero or more statements
Q29: For the "if, else if, else" form
Q30: The output element is for holding the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents