How to Multiply Two Decimals with JavaScript

Tell us what’s happening:

Your code so far

var product = 2.0 * 5;

Your browser information:

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

Link to the challenge:


So the initial code is var product = 2.0 * 0.0; and the challenge asks you to change the 0.0 so the variable product is 5. var product = 2.0 * 5; is not 5 :laughing:

i thought you wanted to give
a solution:roll_eyes::roll_eyes:

that is not the solution - we don’t usually give solutions in the forum, as learning is done best reaching the solution on one own - but it is a really good hint

you should ask something if you have issues, there are no techno-telepaths here that we can guess what’s the answer you need

i have gotten the ans aleady bro. thanks