Need assistance in Divide one Decimal by Another with JavaScript


#1

Challenge Name

Divide one Decimal by Another with JavaScript has an issue.

Issue Description

Replace 0.0 with 4.4. The tests should pass.

Browser Information

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

Screenshot

I am getting an additional test
The quotient variable should only be assigned once.
. Its not passing.

Your Code



var quotient = 4.4 / 2.0; // Fix this line




#2

A screenshot would help - the posted line of code looks fine


#3

I got a similar error. Here’s my screenshot:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x6…"


#4

I have this problem too


#5

Are you sure you type 0 and not o?


#6

you can try dividing by 2 without a decimal


#7

The last test is thrown off by any extra “quotient” occurrences in the code - for example

var quotient = 4.4 / 2.0; // Fix this line
// this console.log makes test case fail because of the word "quotient"
console.log(quotient)

I don’t see this in the screenshot so don’t know why this happens for some people


#8

I am trying the Beta. I am getting the same issue: “the quotient variable should only be assigned once”

Not able to pass the challenge. The quotient var IS only assigned once. Makes no sense why that test is even there.