Multiply Two Decimals with JavaScript

Tell us what’s happening:

Your code so far

var product = 2.0 * 0.0;


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36.

Link to the challenge:

1 Like

Change the 0.0 so that product will equal 5.0.

So you should change the 0.0 to 2.5 (5.0 / 2.0).

1 Like

i am a bit confuse. how can be the aswer is 2.5? can you describe it?

The value of product should be five. Right now its value is 0 because any number multiplied by 0 is 0, you need to change the 0.0 so that the value of product is 5. As there is already a 2.0 the only number that multiplied by it gives 5 is 2.5