Multiply Two Decimals with JavaScript help

Tell us what’s happening:

Your code so far


var product = 2.0 * 0.0;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/multiply-two-decimals-with-javascript

Do you have a question?

1 Like

It is just a multiply question

2 x ?? = 5
here we need to find out how many we need to times we need to mulitply a number
since
2x1=2
2x2=4
2x3=6
we take the 4 since it 2x2
now all we need is the last one we use a 0,5+0,5=1
then add the 4 to get a 5
now is the questions what number do we have to get half of 5 it:
2,5+2,5=5

They can’t figure out the sollution to the assigment