Confusing feedback on "Divide one decimal by another with JavaScript"

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

My code is working properly for this; however, I also received this feedback: “The quotient variable should only be assigned once.” I find that feedback confusing. I thought I that I DID assign the quotient variable only once. Can somebody explain that feedback to me, in light of my code? Thanks. Here’s the entire console log:

// running tests
The quotient variable should only be assigned once
// tests completed
// console output
2.2
2.2

Your code so far


const quotient = 4.4 / 2.0; // Change this line;
console.log (quotient);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Divide One Decimal by Another with JavaScript

Link to the challenge:

The console.log you added is fooling the test. Get rid of it and it will pass.

1 Like

Awesome, that worked. Thank you bbsmooth!

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