Just wants to know the product of 5.0

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var product = 2.0 * 0.0;
var p = 2.5 * 2.0;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67

Challenge: Multiply Two Decimals with JavaScript

Link to the challenge:

just want to know the product of 5.0

Products are or two or more numbers. I would guess that the product of 5.0 would be 5.0.

But as to why you are failing the test, you created a new variable. You weren’t supposed to do that. You were supposed to edit the existing one and change the “0.0” to something else so the variable product will end up being 5.0.

You have this:

var product = 2.0 * 0.0;

How do you change the “0.0” so the product (both the variable product and the mathematical product) would be 5.0.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.